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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..52e448316ce6bdd786bc59c1cb848e9146a05c2d |
--- /dev/null |
+++ b/LayoutTests/webexposed/event-target-in-prototype.html |
@@ -0,0 +1,18 @@ |
+<html> |
+<head> |
+<script src="../fast/js/resources/js-test-pre.js"></script> |
+</head> |
+<body> |
+<script> |
+description("Check that interfaces inherit from EventTarget"); |
+ |
+eventTargets = ['EventSource', 'MessagePort', 'Node', 'WebSocket', 'Window', 'XMLHttpRequest', 'XMLHttpRequestUpload', 'webkitAudioContext']; |
+ |
+for (var i = 0; i < eventTargets.length; i++) { |
+ shouldBe(eventTargets[i] + ".prototype.__proto__", "EventTarget.prototype"); |
+} |
+ |
+</script> |
+<script src="../fast/js/resources/js-test-post.js"></script> |
+</body> |
+</html> |