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

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

Issue 1254803006: Fix MaterialPDFExtensionTest.ElementsTest in Polymer 1.0.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698