idlharness.window.js (464B)
1 // META: script=/resources/WebIDLParser.js 2 // META: script=/resources/idlharness.js 3 4 'use strict'; 5 6 // https://w3c.github.io/IntersectionObserver/ 7 8 idl_test( 9 ['intersection-observer'], 10 ['dom'], 11 idl_array => { 12 idl_array.add_objects({ 13 IntersectionObserver: ['observer'], 14 }); 15 var options = { 16 root: document.body, 17 rootMargin: '0px', 18 threshold: 1.0 19 } 20 self.observer = new IntersectionObserver(() => {}, options); 21 } 22 );