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

Unified Diff: content/shell/layout_test_controller.js

Issue 10860037: [content shell] rename layout_test_controller{,_host,_bindings}.* to webkit_test_runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/layout_test_controller.cc ('k') | content/shell/layout_test_controller_bindings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/layout_test_controller.js
diff --git a/content/shell/layout_test_controller.js b/content/shell/layout_test_controller.js
deleted file mode 100644
index 66fbcf8930c411e5d9ef4f342b73bdc5cae130b8..0000000000000000000000000000000000000000
--- a/content/shell/layout_test_controller.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var testRunner = testRunner || {};
-var accessibilityController = accessibilityController || {};
-var gamepadController = gamepadController || {};
-var eventSender = eventSender || {};
-var textInputController = textInputController || {};
-
-(function() {
- native function NotifyDone();
- native function SetDumpAsText();
- native function SetDumpChildFramesAsText();
- native function SetPrinting();
- native function SetShouldStayOnPageAfterHandlingBeforeUnload();
- native function SetWaitUntilDone();
-
- native function NotImplemented();
-
- var DefaultHandler = function(name) {
- var handler = {
- get: function(receiver, property) {
- return function() {
- return NotImplemented(name, property);
- }
- }
- }
- return Proxy.create(handler);
- }
-
- var LayoutTestController = function() {
- Object.defineProperty(this, "notifyDone", {value: NotifyDone});
- Object.defineProperty(this, "dumpAsText", {value: SetDumpAsText});
- Object.defineProperty(this,
- "dumpChildFramesAsText",
- {value: SetDumpChildFramesAsText});
- Object.defineProperty(this, "setPrinting", {value: SetPrinting});
- Object.defineProperty(
- this,
- "setShouldStayOnPageAfterHandlingBeforeUnload",
- {value: SetShouldStayOnPageAfterHandlingBeforeUnload});
- Object.defineProperty(this, "waitUntilDone", {value: SetWaitUntilDone});
- }
- LayoutTestController.prototype = DefaultHandler("testRunner");
- testRunner = new LayoutTestController();
-
- var AccessibilityController = function() {}
- AccessibilityController.prototype = DefaultHandler("accessibilityController");
- accessibilityController = new AccessibilityController();
-
- var GamepadController = function() {}
- GamepadController.prototype = DefaultHandler("gamepadController");
- gamepadController = new GamepadController();
-
- var EventSender = function() {}
- EventSender.prototype = DefaultHandler("eventSender");
- eventSender = new EventSender();
-
- var TextInputController = function() {}
- TextInputController.prototype = DefaultHandler("textInputController");
- textInputController = new TextInputController();
-})();
« no previous file with comments | « content/shell/layout_test_controller.cc ('k') | content/shell/layout_test_controller_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698