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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-constants.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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: third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-constants.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-constants.html b/third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-constants.html
index 9a0fbde6ef37a883fc69469e8624ab9636a5c77d..eb988cf48739fc8fe84dc921f018c25d76606b4d 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-constants.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-constants.html
@@ -4,6 +4,29 @@
<script src="../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/XMLHttpRequest-constants.js"></script>
+<script>
+description("This test checks the constants on the XMLHttpRequst object, as well as its prototype and constructor.");
+
+debug("Test the constants on the XMLHttpRequest object itself.")
+shouldBe("new XMLHttpRequest().UNSENT", "0");
+shouldBe("new XMLHttpRequest().OPENED", "1");
+shouldBe("new XMLHttpRequest().HEADERS_RECEIVED", "2");
+shouldBe("new XMLHttpRequest().LOADING", "3");
+shouldBe("new XMLHttpRequest().DONE", "4");
+
+debug("Test the constants on the XMLHttpRequest prototype object.")
+shouldBe("XMLHttpRequest.prototype.UNSENT", "0");
+shouldBe("XMLHttpRequest.prototype.OPENED", "1");
+shouldBe("XMLHttpRequest.prototype.HEADERS_RECEIVED", "2");
+shouldBe("XMLHttpRequest.prototype.LOADING", "3");
+shouldBe("XMLHttpRequest.prototype.DONE", "4");
+
+debug("Test the constants on the XMLHttpRequest constructor object.")
+shouldBe("XMLHttpRequest.UNSENT", "0");
+shouldBe("XMLHttpRequest.OPENED", "1");
+shouldBe("XMLHttpRequest.HEADERS_RECEIVED", "2");
+shouldBe("XMLHttpRequest.LOADING", "3");
+shouldBe("XMLHttpRequest.DONE", "4");
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698