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

Unified Diff: chrome/test/data/layout_tests/layout_test_controller.html

Issue 9820005: Move PathService's DIR_LAYOUT_TESTS from chrome to content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove indexed_db_uitest changes Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/layout_tests/clear_dom_storage.html ('k') | chrome/test/ui/ppapi_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/layout_tests/layout_test_controller.html
diff --git a/chrome/test/data/layout_tests/layout_test_controller.html b/chrome/test/data/layout_tests/layout_test_controller.html
deleted file mode 100644
index a112d01fa1a3bb2c9641b870df8c2ecec577c517..0000000000000000000000000000000000000000
--- a/chrome/test/data/layout_tests/layout_test_controller.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<script>
-function LayoutTestController() {
- this.dump_as_text_ = false;
- this.wait_until_done_ = false;
-
- this.dumpAsText = function () {
- this.dump_as_text_ = true;
- };
-
- this.waitUntilDone = function () {
- this.wait_until_done_ = true;
- };
-
- this.notifyDone = function () {
- // For storage events, it actually takes 2 rounds of yielding for everything
- // to complete.
- setTimeout(layoutTestController.DelayedNotifyDone1, 0);
- };
-
- this.overridePreference = function () {
- // WebSocket tests call this function by preference name
- // 'WebKitHixie76WebSocketProtocolEnabled' to switch its protocol version.
- // In Chromium, the value must be 0 because it doesn't support old one.
- };
-
- this.DelayedNotifyDone1 = function () {
- setTimeout(layoutTestController.DelayedNotifyDone2, 0);
- };
-
- this.DelayedNotifyDone2 = function () {
- var token = encodeURIComponent(document.body.innerText);
- var limit = 4090;
- if (token.length > limit)
- token = encodeURIComponent("Too Big! encoded innerText size was " +
- token.length + " > " + limit);
- document.cookie = "%COOKIE%=" + token;
- };
-
- this.OnEvent = function () {
- // HACK: dumpAsText() is always called after waitUntilDone() and all tests
- // that are run within the UI test framework either call
- // waitUntilDone() or dumpAsText(). So we'll simply keep polling
- // until we see one or the other.
- if (layoutTestController.dump_as_text_) {
- if (!layoutTestController.wait_until_done_)
- layoutTestController.notifyDone();
- } else {
- setTimeout(layoutTestController.OnEvent, 200);
- }
- };
-}
-
-window.layoutTestController = new LayoutTestController();
-window.addEventListener('load', layoutTestController.OnEvent, false);
-</script>
« no previous file with comments | « chrome/test/data/layout_tests/clear_dom_storage.html ('k') | chrome/test/ui/ppapi_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698