Commit 60b90a0b authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

[filesapp] Add coverage.html test data file

Add a file with a runTests() method that signals the end of testing by
the window.domAutomationController present in chrome test environments
(browser tests, content browser tests).

Also signal the end of testing with a document.title change to "DONE",
chrome.test.send("DONE") for extensions, and console.log("DONE").

Tbr: benreich
Bug: 1113941
Change-Id: I269322e6d646b511644b1048be8d97fe4ca48e74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2483949Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818783}
parent 4a30e6b6
<html>
<head><title>Title Of Coverage Awesomeness</title></head>
<body>This page has a runTests() function.</body>
<script>
document.title = 'title.READY';
function runTests() {
if (window.domAutomationController)
window.domAutomationController.send('window.domAutomationController.DONE');
if (chrome && chrome.test)
chrome.test.send('chrome.test.send.DONE');
console.log('console.log.DONE');
document.title = 'title.DONE';
}
</script>
</html>
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