OLD | NEW |
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 Loading... |
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 }); | |
OLD | NEW |