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

Side by Side Diff: dashboard/dashboard/elements/test-picker-test.html

Issue 2767433002: Start using /list_tests to populate subtest menus in test-picker (Closed)
Patch Set: working except for cleanup; need to port tests. Created 3 years, 9 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 | « dashboard/dashboard/elements/test-picker.html ('k') | 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2015 The Chromium Authors. All rights reserved. 3 Copyright 2015 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/dashboard/elements/test-picker.html"> 8 <link rel="import" href="/dashboard/elements/test-picker.html">
9 <link rel="import" href="/dashboard/static/testing_common.html"> 9 <link rel="import" href="/dashboard/static/testing_common.html">
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 tearDown: function() { 59 tearDown: function() {
60 // Must comment this out to do manual tests; tearDown gets called 60 // Must comment this out to do manual tests; tearDown gets called
61 // immediately after the test method finishes, and this is used to respond 61 // immediately after the test method finishes, and this is used to respond
62 // to user input which occurs far later. 62 // to user input which occurs far later.
63 testing_common.clearXhrMock(); 63 testing_common.clearXhrMock();
64 } 64 }
65 }; 65 };
66 66
67 test('instantiate', function() { 67 test('instantiate', function() {
68 testing_common.addXhrMock('*', JSON.stringify(MOCK_RESPONSE)); 68 testing_common.addXhrMock('*', JSON.stringify(MOCK_RESPONSE));
69 var testPicker = document.createElement('test-picker'); 69 const testPicker = document.createElement('test-picker');
70 testPicker.subtests.prepopulate({
71
72 });
70 testPicker.testSuites = { 73 testPicker.testSuites = {
71 'endure': { 74 'endure': {
72 'mas': {'Chromium': {'mac': false, 'win7': true}}, 75 'mas': {'Chromium': {'mac': false, 'win7': true}},
73 'dep': true 76 'dep': true
74 }, 77 },
75 'dromaeo': { 78 'dromaeo': {
76 'mas': {'Chromium': {'mac': false, 'win7': false}} 79 'mas': {'Chromium': {'mac': false, 'win7': false}}
77 }, 80 },
78 'blink_perf': { 81 'blink_perf': {
79 'mas': {'Chromium': {'mac': false, 'win7': false}}, 82 'mas': {'Chromium': {'mac': false, 'win7': false}},
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 suiteMenu.selectedItem = suiteMenu.items[0]; 171 suiteMenu.selectedItem = suiteMenu.items[0];
169 172
170 let botMenu = testPicker.getSelectionMenu(1); 173 let botMenu = testPicker.getSelectionMenu(1);
171 botMenu.selectedItem = botMenu.items[0]; 174 botMenu.selectedItem = botMenu.items[0];
172 175
173 assert.isNull(testPicker.getCurrentSelection()); 176 assert.isNull(testPicker.getCurrentSelection());
174 testing_common.clearXhrMock(); 177 testing_common.clearXhrMock();
175 }); 178 });
176 }); 179 });
177 </script> 180 </script>
OLDNEW
« no previous file with comments | « dashboard/dashboard/elements/test-picker.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698