fune/testing/web-platform/tests/intersection-observer/idlharness.window.js
Luke Bjerring 488d9a8ad3 Bug 1474362 [wpt PR 11858] - Update the intersection-observer IDL file, a=testonly
Automatic update from web-platform-testsAdd the intersection-observer IDL file + test (#11858)

--

wpt-commits: 9643ddb5e855882b66481083e544d4c90f3844da
wpt-pr: 11858
2018-08-08 12:09:48 +00:00

22 lines
464 B
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
// https://w3c.github.io/IntersectionObserver/
idl_test(
['intersection-observer'],
['dom'],
idl_array => {
idl_array.add_objects({
IntersectionObserver: ['observer'],
});
var options = {
root: document.body,
rootMargin: '0px',
threshold: 1.0
}
self.observer = new IntersectionObserver(() => {}, options);
}
);