Commit 33c9d62c authored by Takeshi Yoshino's avatar Takeshi Yoshino Committed by Commit Bot

Remove layoutTestController, an alias to testRunner

Bug: 
Change-Id: I5a3cc233bfc3daa96f8fa5258dc2cba0d1740fa1
Reviewed-on: https://chromium-review.googlesource.com/618432Reviewed-by: default avatarMike West <mkwst@chromium.org>
Commit-Queue: Takeshi Yoshino <tyoshino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#495525}
parent bbc699c7
...@@ -323,11 +323,7 @@ void TestRunnerBindings::Install( ...@@ -323,11 +323,7 @@ void TestRunnerBindings::Install(
v8::Local<v8::Object> global = context->Global(); v8::Local<v8::Object> global = context->Global();
v8::Local<v8::Value> v8_bindings = bindings.ToV8(); v8::Local<v8::Value> v8_bindings = bindings.ToV8();
std::vector<std::string> names; global->Set(gin::StringToV8(isolate, "testRunner"), v8_bindings);
names.push_back("testRunner");
names.push_back("layoutTestController");
for (size_t i = 0; i < names.size(); ++i)
global->Set(gin::StringToV8(isolate, names[i].c_str()), v8_bindings);
// The web-platform-tests suite require that reference comparison is delayed // The web-platform-tests suite require that reference comparison is delayed
// for any test with a 'reftest-wait' class on the root element, until that // for any test with a 'reftest-wait' class on the root element, until that
......
CONSOLE WARNING: line 117: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead. CONSOLE WARNING: line 116: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
Tests access of cached DOMWindow properties after the associated frame is navigated. Test should not crash and properties should be set to sane defaults. Tests access of cached DOMWindow properties after the associated frame is navigated. Test should not crash and properties should be set to sane defaults.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 117: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead. CONSOLE WARNING: line 116: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
Tests access of cached DOMWindow properties after the associated frame is removed from a web page and garbage collected. Test should not crash and properties should be set to sane defaults. Tests access of cached DOMWindow properties after the associated frame is removed from a web page and garbage collected. Test should not crash and properties should be set to sane defaults.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 117: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead. CONSOLE WARNING: line 116: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
Tests access of cached DOMWindow properties after the associated frame is no longer in a web page. Test should not crash and properties should be set to sane defaults. Tests access of cached DOMWindow properties after the associated frame is no longer in a web page. Test should not crash and properties should be set to sane defaults.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 117: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead. CONSOLE WARNING: line 116: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
Tests property access on a cached DOMWindow after the associated frame is navigated. Test should not crash and properties read from the cached DOMWindow should be identical to properties through the 'current' DOMWindow. Tests property access on a cached DOMWindow after the associated frame is navigated. Test should not crash and properties read from the cached DOMWindow should be identical to properties through the 'current' DOMWindow.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 117: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead. CONSOLE WARNING: line 116: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
Tests property access on a cached DOMWindow after the associated frame is removed from a web page and garbage collected. Test should not crash and properties should be set to sane defaults. Tests property access on a cached DOMWindow after the associated frame is removed from a web page and garbage collected. Test should not crash and properties should be set to sane defaults.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 117: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead. CONSOLE WARNING: line 116: 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
Tests property access on a cached DOMWindow after the associated frame is no longer in a web page. Test should not crash and properties should be set to sane defaults. Tests property access on a cached DOMWindow after the associated frame is no longer in a web page. Test should not crash and properties should be set to sane defaults.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
...@@ -18,7 +18,6 @@ function emitExpectedResult(path, expected) ...@@ -18,7 +18,6 @@ function emitExpectedResult(path, expected)
if (path[0] == 'internals' if (path[0] == 'internals'
|| path[0] == 'clientInformation' // Just an alias for navigator. || path[0] == 'clientInformation' // Just an alias for navigator.
|| path[0] == 'testRunner' // Skip testRunner since they are only for testing. || path[0] == 'testRunner' // Skip testRunner since they are only for testing.
|| path[0] == 'layoutTestController' // Just an alias for testRunner.
|| path[0] == 'eventSender') { // Skip eventSender since they are only for testing. || path[0] == 'eventSender') { // Skip eventSender since they are only for testing.
return; return;
} }
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<linearGradient xl:href="#tCF2" xlink:href="resources/smiley.png"></linearGradient> <linearGradient xl:href="#tCF2" xlink:href="resources/smiley.png"></linearGradient>
</svg> </svg>
<script> <script>
if (window.layoutTestController) if (window.testRunner)
layoutTestController.dumpAsText(); testRunner.dumpAsText();
var element = document.querySelector('linearGradient'); var element = document.querySelector('linearGradient');
var attr1 = element.attributes[0]; var attr1 = element.attributes[0];
......
...@@ -3,24 +3,10 @@ ...@@ -3,24 +3,10 @@
<body> <body>
<pre><script> <pre><script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
if (window.testRunner) if (window.testRunner)
testRunner.dumpAsText(); testRunner.dumpAsText();
document.writeln(window.testRunner ? "PASS - window.testRunner exists" : "FAIL - window.testRunner doesn't"); document.writeln(window.testRunner ? "PASS - window.testRunner exists" : "FAIL - window.testRunner doesn't");
if (window.layoutTestController) {
for (var property in window.testRunner) {
if (!(property in window.layoutTestController))
document.write("Property " + property + " exists on testRunner but doesn't exist on layoutTestController");
}
for (var property in window.layoutTestController) {
if (!(property in window.testRunner))
document.write("Property " + property + " exists on layoutTestController but doesn't exist on testRunner");
}
}
document.writeln('Done'); document.writeln('Done');
</script></pre> </script></pre>
......
...@@ -8,9 +8,9 @@ function log(message) { ...@@ -8,9 +8,9 @@ function log(message) {
document.getElementById("log").innerHTML += message + "<br>"; document.getElementById("log").innerHTML += message + "<br>";
} }
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} }
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
...@@ -18,14 +18,14 @@ var xhr = new XMLHttpRequest(); ...@@ -18,14 +18,14 @@ var xhr = new XMLHttpRequest();
xhr.open("POST", "http://localhost:8000/xmlhttprequest/resources/access-control-basic-post-success-no-content-type.php"); xhr.open("POST", "http://localhost:8000/xmlhttprequest/resources/access-control-basic-post-success-no-content-type.php");
xhr.onerror = function () { xhr.onerror = function () {
log("FAIL"); log("FAIL");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.onload = function () { xhr.onload = function () {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
log(xhr.responseText); log(xhr.responseText);
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
} }
}; };
xhr.send('Test'); xhr.send('Test');
......
...@@ -9,22 +9,22 @@ function log(message) { ...@@ -9,22 +9,22 @@ function log(message) {
document.getElementById("log").innerHTML += message + "<br>"; document.getElementById("log").innerHTML += message + "<br>";
} }
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} }
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-preflight-request-invalid-status.php?code=400"); xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-preflight-request-invalid-status.php?code=400");
xhr.onerror = function () { xhr.onerror = function () {
log("FAIL"); log("FAIL");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.onload = function () { xhr.onload = function () {
log("PASS"); log("PASS");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.send(); xhr.send();
</script> </script>
......
...@@ -7,9 +7,9 @@ function log(message) { ...@@ -7,9 +7,9 @@ function log(message) {
document.getElementById("log").innerHTML += message + "<br>"; document.getElementById("log").innerHTML += message + "<br>";
} }
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} }
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
...@@ -17,14 +17,14 @@ xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-p ...@@ -17,14 +17,14 @@ xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-p
xhr.setRequestHeader("X-Custom-Header", "PASS"); xhr.setRequestHeader("X-Custom-Header", "PASS");
xhr.onerror = function () { xhr.onerror = function () {
log("FAIL"); log("FAIL");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.onreadystatechange = function () { xhr.onreadystatechange = function () {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
log(xhr.responseText); log(xhr.responseText);
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
} }
}; };
xhr.send(); xhr.send();
......
...@@ -7,9 +7,9 @@ function log(message) { ...@@ -7,9 +7,9 @@ function log(message) {
document.getElementById("log").innerHTML += message + "<br>"; document.getElementById("log").innerHTML += message + "<br>";
} }
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} }
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
...@@ -17,13 +17,13 @@ xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-p ...@@ -17,13 +17,13 @@ xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-p
xhr.setRequestHeader("X-Custom-Header", "PASS"); xhr.setRequestHeader("X-Custom-Header", "PASS");
xhr.onerror = function () { xhr.onerror = function () {
log("PASS"); log("PASS");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.onload = function () { xhr.onload = function () {
log("FAIL"); log("FAIL");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.send(); xhr.send();
</script> </script>
......
...@@ -7,9 +7,9 @@ function log(message) { ...@@ -7,9 +7,9 @@ function log(message) {
document.getElementById("log").innerHTML += message + "<br>"; document.getElementById("log").innerHTML += message + "<br>";
} }
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} }
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
...@@ -17,13 +17,13 @@ xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-p ...@@ -17,13 +17,13 @@ xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-p
xhr.setRequestHeader("X-Custom-Header", "PASS"); xhr.setRequestHeader("X-Custom-Header", "PASS");
xhr.onerror = function () { xhr.onerror = function () {
log("PASS"); log("PASS");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.onload = function () { xhr.onload = function () {
log("FAIL"); log("FAIL");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.send(); xhr.send();
</script> </script>
......
...@@ -7,9 +7,9 @@ function log(message) { ...@@ -7,9 +7,9 @@ function log(message) {
document.getElementById("log").innerHTML += message + "<br>"; document.getElementById("log").innerHTML += message + "<br>";
} }
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} }
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
...@@ -18,13 +18,13 @@ xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-p ...@@ -18,13 +18,13 @@ xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-p
xhr.setRequestHeader("X-Custom-Header", "PASS"); xhr.setRequestHeader("X-Custom-Header", "PASS");
xhr.onerror = function () { xhr.onerror = function () {
log("PASS"); log("PASS");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.onload = function () { xhr.onload = function () {
log("FAIL"); log("FAIL");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.send(); xhr.send();
</script> </script>
......
...@@ -8,23 +8,23 @@ function log(message) { ...@@ -8,23 +8,23 @@ function log(message) {
document.getElementById("log").innerHTML += message + "<br>"; document.getElementById("log").innerHTML += message + "<br>";
} }
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} }
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open("GET", "http://localhost:8080/xmlhttprequest/resources/redirect-cors-origin-null.php"); xhr.open("GET", "http://localhost:8080/xmlhttprequest/resources/redirect-cors-origin-null.php");
xhr.onerror = function () { xhr.onerror = function () {
log("FAIL"); log("FAIL");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.onreadystatechange = function () { xhr.onreadystatechange = function () {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
log(xhr.responseText); log(xhr.responseText);
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
} }
}; };
xhr.send(); xhr.send();
......
...@@ -7,9 +7,9 @@ function log(message) { ...@@ -7,9 +7,9 @@ function log(message) {
document.getElementById("log").innerHTML += message + "<br>"; document.getElementById("log").innerHTML += message + "<br>";
} }
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} }
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
...@@ -17,14 +17,14 @@ var xhr = new XMLHttpRequest(); ...@@ -17,14 +17,14 @@ var xhr = new XMLHttpRequest();
xhr.open("POST", "resources/xmlhttprequest-no-content-type-with-text.php"); xhr.open("POST", "resources/xmlhttprequest-no-content-type-with-text.php");
xhr.onerror = function () { xhr.onerror = function () {
log("FAIL"); log("FAIL");
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
}; };
xhr.onload = function () { xhr.onload = function () {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
log(xhr.responseText); log(xhr.responseText);
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
} }
}; };
xhr.send('Test'); xhr.send('Test');
......
...@@ -7949,7 +7949,6 @@ interface webkitURL ...@@ -7949,7 +7949,6 @@ interface webkitURL
attribute gamepadController attribute gamepadController
attribute gin attribute gin
attribute internals attribute internals
attribute layoutTestController
attribute length attribute length
attribute location attribute location
attribute opener attribute opener
......
...@@ -7878,7 +7878,6 @@ interface webkitURL ...@@ -7878,7 +7878,6 @@ interface webkitURL
attribute gamepadController attribute gamepadController
attribute gin attribute gin
attribute internals attribute internals
attribute layoutTestController
attribute length attribute length
attribute location attribute location
attribute opener attribute opener
......
...@@ -8985,7 +8985,6 @@ interface webkitURL ...@@ -8985,7 +8985,6 @@ interface webkitURL
attribute gamepadController attribute gamepadController
attribute gin attribute gin
attribute internals attribute internals
attribute layoutTestController
attribute length attribute length
attribute location attribute location
attribute opener attribute opener
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment