Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: LayoutTests/webexposed/event-target-in-prototype.html

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/fast/dom/dom-constructors-expected.txt ('k') | LayoutTests/webexposed/event-target-in-prototype-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698