 policy should have the same required policy as its parent.");

async_test(t => {
  var iframe = document.createElement('iframe');
  iframe.src = "/document-policy/echo-policy.py?id=2";
  iframe.policy = "lossless-images-max-bpp=4";
  callbacks["2"] = t.step_func_done(result => {
    assert_equals(result, "lossless-images-max-bpp=1.0");
  });
  document.body.appendChild(iframe);
}, "Child frame with a less strict required policy should have the stricter value from the parent's policy applied.");

async_test