Commit b904969c authored by mkwst@chromium.org's avatar mkwst@chromium.org

Extension documentation generation no longer relies on layoutTestController.

`layoutTestController` was recently renamed to `testRunner`. See
http://lists.webkit.org/pipermail/webkit-dev/2012-August/021746.html for
context.

BUG=140791

Review URL: https://chromiumcodereview.appspot.com/10825200

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150308 0039d316-1c4b-4281-b951-d872f2087c98
parent 06529485
...@@ -8,9 +8,9 @@ var currentPage; ...@@ -8,9 +8,9 @@ var currentPage;
var result = {}; var result = {};
function init() { function init() {
if (window.layoutTestController) { if (window.testRunner) {
layoutTestController.dumpAsText(); testRunner.dumpAsText();
layoutTestController.waitUntilDone(); testRunner.waitUntilDone();
} else { } else {
console.error("No layout test controller"); console.error("No layout test controller");
} }
...@@ -47,8 +47,8 @@ function done() { ...@@ -47,8 +47,8 @@ function done() {
"#BEGIN" + JSON.stringify(result) + "#END"); "#BEGIN" + JSON.stringify(result) + "#END");
preNode.appendChild(textNode); preNode.appendChild(textNode);
document.getElementsByTagName("body")[0].appendChild(preNode); document.getElementsByTagName("body")[0].appendChild(preNode);
if (window.layoutTestController) if (window.testRunner)
layoutTestController.notifyDone(); testRunner.notifyDone();
} }
} }
</script> </script>
......
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