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

Side by Side Diff: Tools/GardeningServer/scripts/ui_unittests.js

Issue 356273002: Remove StatusArea code from GOM it's dead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Tools/GardeningServer/scripts/ui/actions.js ('k') | Tools/GardeningServer/styles/results.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 grid.addResults(['http://example.com/layout-test-results/foo-bar-crash-log.t xt']); 96 grid.addResults(['http://example.com/layout-test-results/foo-bar-crash-log.t xt']);
97 equal(grid.innerHTML, '<ct-test-output></ct-test-output>'); 97 equal(grid.innerHTML, '<ct-test-output></ct-test-output>');
98 }); 98 });
99 99
100 test("results.ResultsGrid (empty)", 1, function() { 100 test("results.ResultsGrid (empty)", 1, function() {
101 var grid = new ui.results.ResultsGrid() 101 var grid = new ui.results.ResultsGrid()
102 grid.addResults([]); 102 grid.addResults([]);
103 equal(grid.innerHTML, 'No results to display.'); 103 equal(grid.innerHTML, 'No results to display.');
104 }); 104 });
105 105
106 test("StatusArea", 3, function() {
107 var statusArea = new ui.StatusArea();
108 var id = statusArea.newId();
109 statusArea.addMessage(id, 'First Message');
110 statusArea.addMessage(id, 'Second Message');
111 equal(statusArea.outerHTML,
112 '<div class="status processing" style="visibility: visible;">' +
113 '<div class="dragger"></div>' +
114 '<div class="contents">' +
115 '<div id="status-content-1" class="status-content">' +
116 '<div class="message">First Message</div>' +
117 '<div class="message">Second Message</div>' +
118 '</div>' +
119 '</div>' +
120 '<ul class="actions"><li><button class="action">Close</button></li>< /ul>' +
121 '<progress class="process-text">Processing...</progress>' +
122 '</div>');
123
124 var secondStatusArea = new ui.StatusArea();
125 var secondId = secondStatusArea.newId();
126 secondStatusArea.addMessage(secondId, 'First Message second id');
127
128 equal(statusArea.outerHTML,
129 '<div class="status processing" style="visibility: visible;">' +
130 '<div class="dragger"></div>' +
131 '<div class="contents">' +
132 '<div id="status-content-1" class="status-content">' +
133 '<div class="message">First Message</div>' +
134 '<div class="message">Second Message</div>' +
135 '</div>' +
136 '<div id="status-content-2" class="status-content">' +
137 '<div class="message">First Message second id</div>' +
138 '</div>' +
139 '</div>' +
140 '<ul class="actions"><li><button class="action">Close</button></li>< /ul>' +
141 '<progress class="process-text">Processing...</progress>' +
142 '</div>');
143
144 statusArea.addFinalMessage(id, 'Final Message 1');
145 statusArea.addFinalMessage(secondId, 'Final Message 2');
146
147 equal(statusArea.outerHTML,
148 '<div class="status" style="visibility: visible;">' +
149 '<div class="dragger"></div>' +
150 '<div class="contents">' +
151 '<div id="status-content-1" class="status-content">' +
152 '<div class="message">First Message</div>' +
153 '<div class="message">Second Message</div>' +
154 '<div class="message">Final Message 1</div>' +
155 '</div>' +
156 '<div id="status-content-2" class="status-content">' +
157 '<div class="message">First Message second id</div>' +
158 '<div class="message">Final Message 2</div>' +
159 '</div>' +
160 '</div>' +
161 '<ul class="actions"><li><button class="action">Close</button></li>< /ul>' +
162 '<progress class="process-text">Processing...</progress>' +
163 '</div>');
164
165 statusArea.close();
166 });
167
168 var openTreeJson = { 106 var openTreeJson = {
169 "username": "erg@chromium.org", 107 "username": "erg@chromium.org",
170 "date": "2013-10-14 20:22:00.887390", 108 "date": "2013-10-14 20:22:00.887390",
171 "message": "Tree is open", 109 "message": "Tree is open",
172 "can_commit_freely": true, 110 "can_commit_freely": true,
173 "general_state": "open" 111 "general_state": "open"
174 }; 112 };
175 113
176 asyncTest("TreeStatus", 2, function() { 114 asyncTest("TreeStatus", 2, function() {
177 var simulator = new NetworkSimulator(); 115 var simulator = new NetworkSimulator();
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 '<td>554</td>' + 296 '<td>554</td>' +
359 '</tr>' + 297 '</tr>' +
360 '</table>' + 298 '</table>' +
361 '</details>' + 299 '</details>' +
362 ', trunk is at <a href="http://src.chromium.org/viewvc/blink?vie w=rev&amp;revision=555">555</a>'); 300 ', trunk is at <a href="http://src.chromium.org/viewvc/blink?vie w=rev&amp;revision=555">555</a>');
363 start(); 301 start();
364 }); 302 });
365 }); 303 });
366 304
367 })(); 305 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/ui/actions.js ('k') | Tools/GardeningServer/styles/results.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698