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

Side by Side Diff: chrome/test/data/layout_tests/layout_test_controller.html

Issue 159720: Run the DOM Storage layout tests in the UI test framework since the test shel... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/test/data/workers/layout_test_controller.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 function LayoutTestController() { 2 function LayoutTestController() {
3 this.wait_until_done_ = false;
3 this.dumpAsText = function () { }; 4 this.dumpAsText = function () { };
4 this.waitUntilDone = function () { }; 5 this.waitUntilDone = function () {
6 this.wait_until_done_ = true;
7 };
5 this.notifyDone = function () { 8 this.notifyDone = function () {
6 var cookie = "%COOKIE%=" + encodeURIComponent(document.firstChild.innerText) ; 9 var cookie = "%COOKIE%=" + encodeURIComponent(document.firstChild.innerText) ;
7 document.cookie = cookie; 10 document.cookie = cookie;
8 }; 11 };
12 this.OnTimerEvent = function () {
13 // Some layout tests do not call waitUntilDone. If this is true, we should
14 // assume the test is done when it's finished loading.
15 if (!this.wait_until_done_)
16 layoutTestController.notifyDone();
17 };
18 this.OnLoadEvent = function (event) {
19 // Do a timeout to ensure that we run after all other onload handlers have
20 // finished.
21 setTimeout(layoutTestController.OnTimerEvent, 0);
22 };
9 } 23 }
10 var layoutTestController = new LayoutTestController(); 24 window.layoutTestController = new LayoutTestController();
11 window.layoutTestController = layoutTestController; 25 window.addEventListener('load', layoutTestController.OnLoadEvent, false);
12 </script> 26 </script>
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/test/data/workers/layout_test_controller.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698