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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/script-tests/XMLHttpRequest-constants.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("This test checks the constants on the XMLHttpRequst object, as well as its prototype and constructor.");
2
3 debug("Test the constants on the XMLHttpRequest object itself.")
4 shouldBe("new XMLHttpRequest().UNSENT", "0");
5 shouldBe("new XMLHttpRequest().OPENED", "1");
6 shouldBe("new XMLHttpRequest().HEADERS_RECEIVED", "2");
7 shouldBe("new XMLHttpRequest().LOADING", "3");
8 shouldBe("new XMLHttpRequest().DONE", "4");
9
10 debug("Test the constants on the XMLHttpRequest prototype object.")
11 shouldBe("XMLHttpRequest.prototype.UNSENT", "0");
12 shouldBe("XMLHttpRequest.prototype.OPENED", "1");
13 shouldBe("XMLHttpRequest.prototype.HEADERS_RECEIVED", "2");
14 shouldBe("XMLHttpRequest.prototype.LOADING", "3");
15 shouldBe("XMLHttpRequest.prototype.DONE", "4");
16
17 debug("Test the constants on the XMLHttpRequest constructor object.")
18 shouldBe("XMLHttpRequest.UNSENT", "0");
19 shouldBe("XMLHttpRequest.OPENED", "1");
20 shouldBe("XMLHttpRequest.HEADERS_RECEIVED", "2");
21 shouldBe("XMLHttpRequest.LOADING", "3");
22 shouldBe("XMLHttpRequest.DONE", "4");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698