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

Unified Diff: LayoutTests/fast/forms/resources/picker-common.js

Issue 765903002: Remove internals.setEnableMockPagePopup(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | « no previous file | Source/core/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/resources/picker-common.js
diff --git a/LayoutTests/fast/forms/resources/picker-common.js b/LayoutTests/fast/forms/resources/picker-common.js
index b541fd2391a4d3c1dd1b9f6befca192b3db27f30..0a20ef231c5d5a32e95adcb13a10f11f955cb73b 100644
--- a/LayoutTests/fast/forms/resources/picker-common.js
+++ b/LayoutTests/fast/forms/resources/picker-common.js
@@ -4,23 +4,6 @@ var popupWindow = null;
var popupOpenCallback = null;
-function openPickerWithMock(input, callback) {
- if (window.internals)
- internals.setEnableMockPagePopup(true);
- input.offsetTop; // Force to lay out
- if (input.type === "color") {
- input.focus();
- eventSender.keyDown(" ");
- } else {
- sendKey(input, "Down", false, true);
- }
- popupWindow = document.getElementById('mock-page-popup').contentWindow;
- if (typeof callback === "function") {
- popupOpenCallback = callback;
- popupWindow.addEventListener("didOpenPicker", popupOpenCallbackWrapper, false);
- }
-}
-
function popupOpenCallbackWrapper() {
popupWindow.removeEventListener("didOpenPicker", popupOpenCallbackWrapper);
setTimeout(popupOpenCallback, 0);
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698