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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html

Issue 23243002: Introduce XMLHttpRequestEventTarget IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update event-target-in-prototype.html test case Created 7 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html
new file mode 100644
index 0000000000000000000000000000000000000000..19c65f997d65f7e052c2544c64de36177f14ec26
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="help" href="http://www.w3.org/TR/2012/WD-XMLHttpRequest-20121206/#xmlhttprequesteventtarget">
+<script src="../resources/js-test-pre.js"></script>
+</head>
+<body>
+<script>
+description("Checks the prototype chain of XMLHttpRequest / XMLHttpRequestUpload.");
+
+function className(obj) {
+ return Object.prototype.toString.call(obj).slice(8, -1);
+}
+
+// XMLHttpRequest.
+shouldBeEqualToString("XMLHttpRequest.__proto__.name", "XMLHttpRequestEventTarget");
+shouldBeEqualToString("XMLHttpRequest.prototype.__proto__.constructor.name", "XMLHttpRequestEventTarget");
+shouldBeEqualToString("className(XMLHttpRequest.prototype.__proto__)", "XMLHttpRequestEventTargetPrototype");
+shouldBe("XMLHttpRequest.prototype.__proto__.__proto__", "EventTarget.prototype");
+
+// XMLHttpRequestUpload.
+shouldBeEqualToString("XMLHttpRequestUpload.__proto__.name", "XMLHttpRequestEventTarget");
+shouldBeEqualToString("XMLHttpRequestUpload.prototype.__proto__.constructor.name", "XMLHttpRequestEventTarget");
+shouldBeEqualToString("className(XMLHttpRequestUpload.prototype.__proto__)", "XMLHttpRequestEventTargetPrototype");
+shouldBe("XMLHttpRequestUpload.prototype.__proto__.__proto__", "EventTarget.prototype");
+</script>
+</body>
+<script src="../resources/js-test-post.js"></script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698