| OLD | NEW |
| (Empty) |
| 1 importScripts("/resources/testharness.js"); | |
| 2 var unexpected = [ | |
| 3 // https://html.spec.whatwg.org/ | |
| 4 "SharedWorkerGlobalScope", | |
| 5 "AbstractView", | |
| 6 "AbstractWorker", | |
| 7 "ApplicationCache", | |
| 8 "Location", | |
| 9 "Navigator", | |
| 10 "Audio", | |
| 11 "HTMLCanvasElement", | |
| 12 "Path", | |
| 13 "TextMetrics", | |
| 14 "CanvasProxy", | |
| 15 "CanvasRenderingContext2D", | |
| 16 "DrawingStyle", | |
| 17 "CanvasGradient", | |
| 18 "CanvasPattern", | |
| 19 "PopStateEvent", | |
| 20 "HashChangeEvent", | |
| 21 "PageTransitionEvent", | |
| 22 // https://dom.spec.whatwg.org/ | |
| 23 "DOMImplementation", | |
| 24 // https://streams.spec.whatwg.org/ | |
| 25 "ReadableStreamDefaultReader", | |
| 26 "ReadableStreamBYOBReader", | |
| 27 "ReadableStreamDefaultController", | |
| 28 "ReadableByteStreamController", | |
| 29 "WritableStreamDefaultWriter", | |
| 30 "WritableStreamDefaultController", | |
| 31 // http://w3c.github.io/IndexedDB/ | |
| 32 "IDBEnvironment", | |
| 33 // https://www.w3.org/TR/2010/NOTE-webdatabase-20101118/ | |
| 34 "Database", | |
| 35 // https://w3c.github.io/uievents/ | |
| 36 "UIEvent", | |
| 37 "FocusEvent", | |
| 38 "MouseEvent", | |
| 39 "WheelEvent", | |
| 40 "InputEvent", | |
| 41 "KeyboardEvent", | |
| 42 "CompositionEvent", | |
| 43 ]; | |
| 44 for (var i = 0; i < unexpected.length; ++i) { | |
| 45 test(function () { | |
| 46 assert_false(unexpected[i] in self); | |
| 47 }, "The " + unexpected[i] + " interface object should not be exposed."); | |
| 48 } | |
| 49 done(); | |
| OLD | NEW |