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

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

Issue 2949883006: PDFExtensionTest: Stop using chrome:// URL to load mock-interactions.js (Closed)
Patch Set: Add dependency Created 3 years, 5 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 function resetDocument() { 5 function resetDocument() {
6 window.viewer.viewport.goToPage(0); 6 window.viewer.viewport.goToPage(0);
7 window.viewer.viewport.setZoom(1); 7 window.viewer.viewport.setZoom(1);
8 window.viewer.isFormFieldFocused_ = false; 8 window.viewer.isFormFieldFocused_ = false;
9 } 9 }
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Page up -> Back to page 1. 63 // Page up -> Back to page 1.
64 MockInteractions.pressAndReleaseKeyOn(document, 33); 64 MockInteractions.pressAndReleaseKeyOn(document, 33);
65 chrome.test.assertEq(0, getCurrentPage()); 65 chrome.test.assertEq(0, getCurrentPage());
66 66
67 resetDocument(); 67 resetDocument();
68 chrome.test.succeed(); 68 chrome.test.succeed();
69 } 69 }
70 ]; 70 ];
71 71
72 importTestHelpers().then(function() { 72 chrome.test.runTests(tests);
73 chrome.test.runTests(tests);
74 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698