blob: 0d357e919dff1d9183db21e11500dd2afd528421 [file] [log] [blame]
<!doctype html><!-- webkit-test-runner [ experimental:ResizeObserverEnabled=true ] -->
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<iframe src="./resources/frameset2.html"></iframe>
<script>
function test0() {
let test = async_test('test0: Observe element from other frame');
window.addEventListener('message', event => {
switch(event.data) {
case 'success':
case 'fail':
test.step( () => {
assert_equals(event.data, 'success');
test.done();
});
break;
}
}, false);
}
test(_ => {
assert_own_property(window, "ResizeObserver");
}, "ResizeObserver implemented");
test0();
</script>