imported/w3c/web-platform-tests/hr-time/test_cross_frame_start.html is a flaky failure
[WebKit-https.git] / LayoutTests / resize-observer / modify-frametree-in-callback.html
1 <!doctype html><!-- webkit-test-runner [ experimental:ResizeObserverEnabled=true ] -->
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <div>Test pass if no crash.</div>
6
7 <iframe src="./resources/frameset1.html"></iframe>
8
9 <script>
10
11 function test0() {
12     let test = async_test('test0: Frametree changed in callback');
13     setInterval(function() {
14         let frameset = document.querySelector('iframe').contentDocument.querySelector('frameset');
15         if (frameset && frameset.childElementCount == 0) {
16             test.done();
17         }
18     }, 10);
19 }
20
21 test(_ => {
22     assert_own_property(window, "ResizeObserver");
23 }, "ResizeObserver implemented");
24
25 test0();
26 </script>