Chromium Code Reviews| 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 /** | 5 /** |
| 6 * Standalone unit tests of the PDF Polymer elements. | 6 * Standalone unit tests of the PDF Polymer elements. |
| 7 */ | 7 */ |
| 8 var tests = [ | 8 var tests = [ |
| 9 /** | 9 /** |
| 10 * Test that viewer-page-selector reacts correctly to text entry. The page | 10 * Test that viewer-page-selector reacts correctly to text entry. The page |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 | 128 |
| 129 var subBookmarkDiv = | 129 var subBookmarkDiv = |
| 130 rootBookmark.shadowRoot.querySelector('.sub-bookmark'); | 130 rootBookmark.shadowRoot.querySelector('.sub-bookmark'); |
| 131 | 131 |
| 132 chrome.test.assertTrue(subBookmarkDiv.hidden); | 132 chrome.test.assertTrue(subBookmarkDiv.hidden); |
| 133 MockInteractions.tap(rootBookmark.$.expand); | 133 MockInteractions.tap(rootBookmark.$.expand); |
| 134 chrome.test.assertFalse(subBookmarkDiv.hidden); | 134 chrome.test.assertFalse(subBookmarkDiv.hidden); |
| 135 chrome.test.assertEq('hidden', subBookmarks[1].$.expand.style.visibility); | 135 chrome.test.assertEq('hidden', subBookmarks[1].$.expand.style.visibility); |
| 136 | 136 |
| 137 chrome.test.succeed(); | 137 chrome.test.succeed(); |
| 138 }); | 138 }, 10); |
|
raymes
2015/07/30 04:33:22
Hmm doing this could make the test flaky. If there
tsergeant
2015/07/30 05:02:09
My understanding of it (based on reading the Polym
tsergeant
2015/07/30 07:04:05
Actually, I've now convinced myself the other way.
| |
| 139 } | 139 } |
| 140 ]; | 140 ]; |
| 141 | 141 |
| 142 importTestHelpers().then(function() { | 142 importTestHelpers().then(function() { |
| 143 chrome.test.runTests(tests); | 143 chrome.test.runTests(tests); |
| 144 }); | 144 }); |
| OLD | NEW |