chromium/third_party/blink/web_tests/http/tests/devtools/layers/layer-oopif.js

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import {TestRunner} from 'test_runner';
import {LayersTestRunner} from 'layers_test_runner';

(async function() {
  TestRunner.addResult(`Tests renderer does not crash with an out-of-process iframe`);
  await TestRunner.loadHTML(`
      <style>
      #frame {
        width: 200px;
        height: 200px;
      }
      </style>
    `);
  await TestRunner.addIframe('http://localhost:8000/devtools/layers/resources/composited-iframe.html', {id: 'frame'});
  await LayersTestRunner.requestLayers();
  TestRunner.completeTest();
})();