idlharness.window.js (635B)
1 // META: script=/resources/WebIDLParser.js 2 // META: script=/resources/idlharness.js 3 // META: timeout=long 4 5 'use strict'; 6 7 idl_test( 8 ['web-animations', 'web-animations-2'], 9 ['dom', 'html', 'scroll-animations'], 10 idl_array => { 11 idl_array.add_objects({ 12 Animation: ['new Animation()'], 13 AnimationPlaybackEvent: ['new AnimationPlaybackEvent("cancel")'], 14 Document: ['document'], 15 DocumentTimeline: ['document.timeline'], 16 KeyframeEffect: ['new KeyframeEffect(null, null)'], 17 ShadowRoot: ['shadowRoot'], 18 }); 19 self.shadowRoot = document.createElement("div").attachShadow({mode: "open"}); 20 } 21 );