Index: LayoutTests/webexposed/event-target-in-prototype.html |
diff --git a/LayoutTests/webexposed/event-target-in-prototype.html b/LayoutTests/webexposed/event-target-in-prototype.html |
index 6ce570832146c69eb5890f80cef439dac7179660..a404c623b4661cb5e3f7513f8df27d60c29c3ac3 100644 |
--- a/LayoutTests/webexposed/event-target-in-prototype.html |
+++ b/LayoutTests/webexposed/event-target-in-prototype.html |
@@ -9,7 +9,8 @@ description("Check that interfaces inherit from EventTarget"); |
eventTargets = ['EventSource', 'FileReader', 'MediaController', 'MediaSource', 'MessagePort', 'Node', 'Performance', 'SVGElementInstance', 'SharedWorker', 'WebSocket', 'Window', 'Worker', 'AudioContext']; |
for (var i = 0; i < eventTargets.length; i++) { |
- shouldBe(eventTargets[i] + ".prototype.__proto__", "EventTarget.prototype"); |
+ if (eventTargets[i] in window) |
+ shouldBe(eventTargets[i] + ".prototype.__proto__", "EventTarget.prototype"); |
} |
</script> |