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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/dom/location-stringify.html

Issue 2506393004: binding: Makes non-cross-origin-accessible attrs be accessor props. (Closed)
Patch Set: Synced. Created 4 years, 1 month 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/http/tests/dom/location-stringify.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/dom/location-stringify.html b/third_party/WebKit/LayoutTests/http/tests/dom/location-stringify.html
index 9ef1ce71cadc5078b34b3ed3e9d5fa356cbd5407..547d9c1934af8cd43a461cb6b3f8be0509ed9683 100644
--- a/third_party/WebKit/LayoutTests/http/tests/dom/location-stringify.html
+++ b/third_party/WebKit/LayoutTests/http/tests/dom/location-stringify.html
@@ -3,25 +3,28 @@
<script>
function log(str)
{
- var li = document.createElement("li");
- li.appendChild(document.createTextNode(str));
- var console = document.getElementById("console");
- console.appendChild(li);
+ var li = document.createElement("li");
+ li.appendChild(document.createTextNode(str));
+ var console = document.getElementById("console");
+ console.appendChild(li);
}
function assertEqual(message, actual, expected)
{
- if (actual != expected)
- log("\n" + message + ": Failure, actual: " + actual + "; expected: " + expected);
- else
- log("\n" + message + ": Success");
+ if (actual != expected)
+ log("\n" + message + ": Failure, actual: " + actual + "; expected: " + expected);
+ else
+ log("\n" + message + ": Success");
}
function runTests() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- }
- assertEqual("stringify", JSON.stringify(window.location), '{"hash":"","search":"","pathname":"/dom/location-stringify.html","port":"8000","hostname":"127.0.0.1","host":"127.0.0.1:8000","protocol":"http:","origin":"http://127.0.0.1:8000","href":"http://127.0.0.1:8000/dom/location-stringify.html","ancestorOrigins":{}}');
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ }
+ assertEqual(
+ "stringify",
+ JSON.stringify(window.location),
+ '{"href":"http://127.0.0.1:8000/dom/location-stringify.html","ancestorOrigins":{},"origin":"http://127.0.0.1:8000","protocol":"http:","host":"127.0.0.1:8000","hostname":"127.0.0.1","port":"8000","pathname":"/dom/location-stringify.html","search":"","hash":""}');
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698