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

Side by Side Diff: chrome/test/data/pdf/toolbar_manager_test.js

Issue 2949883006: PDFExtensionTest: Stop using chrome:// URL to load mock-interactions.js (Closed)
Patch Set: Add dependency Created 3 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A cut-down version of MockInteractions.move, which is not exposed 5 // A cut-down version of MockInteractions.move, which is not exposed
6 // publicly. 6 // publicly.
7 function getMouseMoveEvents(fromX, fromY, toX, toY, steps) { 7 function getMouseMoveEvents(fromX, fromY, toX, toY, steps) {
8 var dx = Math.round((toX - fromX) / steps); 8 var dx = Math.round((toX - fromX) / steps);
9 var dy = Math.round((toY - fromY) / steps); 9 var dy = Math.round((toY - fromY) / steps);
10 var events = []; 10 var events = [];
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 chrome.test.assertTrue(toolbar.opened, 187 chrome.test.assertTrue(toolbar.opened,
188 "toolbars stay open after tap near toolbars"); 188 "toolbars stay open after tap near toolbars");
189 mockWindow.runTimeout(); 189 mockWindow.runTimeout();
190 chrome.test.assertTrue(toolbar.opened, 190 chrome.test.assertTrue(toolbar.opened,
191 "tap near toolbars prevents auto close"); 191 "tap near toolbars prevents auto close");
192 192
193 chrome.test.succeed(); 193 chrome.test.succeed();
194 } 194 }
195 ]; 195 ];
196 196
197 importTestHelpers().then(function() { 197 chrome.test.runTests(tests);
198 chrome.test.runTests(tests);
199 });
OLDNEW
« chrome/browser/pdf/pdf_extension_test.cc ('K') | « chrome/test/data/pdf/test_util.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698