OLD | NEW |
---|---|
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
216 | 216 |
217 var treestatus; | 217 var treestatus; |
218 simulator.runTest(function() { | 218 simulator.runTest(function() { |
219 treeStatus = new ui.TreeStatus(); | 219 treeStatus = new ui.TreeStatus(); |
220 }).then(function() { | 220 }).then(function() { |
221 equal(treeStatus.innerHTML, '<div> blink status: <span>OPEN</span></div> <div> chromium status: <span>OPEN</span></div>'); | 221 equal(treeStatus.innerHTML, '<div> blink status: <span>OPEN</span></div> <div> chromium status: <span>OPEN</span></div>'); |
222 start(); | 222 start(); |
223 }); | 223 }); |
224 }); | 224 }); |
225 | 225 |
226 var currentRoll = { | |
227 "results": [ | |
228 { "messages":[],"base_url":"svn://svn.chromium.org/chrome/trunk/src","su bject":"Blink roll 540:550","closed":false,"issue":1000} | |
ojan
2014/06/05 00:54:48
Nit: We're a little less consitent about the space
Julien - ping for review
2014/06/05 01:51:52
Done.
| |
229 ] | |
230 }; | |
231 | |
232 asyncTest("RevisionDetails", 2, function() { | |
233 var simulator = new NetworkSimulator(); | |
234 simulator.json = function(url) | |
235 { | |
236 return Promise.resolve(currentRoll); | |
237 } | |
238 simulator.get = function (url) | |
239 { | |
240 return Promise.resolve("540"); | |
241 } | |
242 | |
243 model.state.resultsByBuilder = { | |
244 "Linux": { | |
245 "blink_revision": "554", | |
246 } | |
247 }; | |
248 model.state.recentCommits = [ | |
249 { | |
250 "revision": "555", | |
251 }]; | |
252 | |
253 var revisionDetails; | |
254 simulator.runTest(function() { | |
255 revisionDetails = ui.revisionDetails(); | |
256 }).then(function() { | |
257 equal(revisionDetails.innerHTML, 'Latest revision processed by every bot : <details><summary><a href="http://src.chromium.org/viewvc/blink?view=rev&r evision=554">554<span id="revisionPopUp"><table><tr><td><a href="http://build.ch romium.org/p/chromium.webkit/waterfall?builder=Linux">Linux</a></td><td>554</td> </tr></table></span></a></summary><table><tr><td><a href="http://build.chromium. org/p/chromium.webkit/waterfall?builder=Linux">Linux</a></td><td>554</td></tr></ table></details>, trunk is at <a href="http://src.chromium.org/viewvc/blink?view =rev&revision=555">555</a><br>Last roll is to <a href="http://src.chromium.o rg/viewvc/blink?view=rev&revision=540">540</a>, current autoroll <a href="ht tps://codereview.chromium.org/1000">540:550</a>'); | |
ojan
2014/06/05 00:54:48
When I do innerHTML based tests, I usually format
Julien - ping for review
2014/06/05 01:51:52
As we will be changing the formatting and it has a
| |
258 start(); | |
259 }); | |
260 }); | |
226 | 261 |
227 })(); | 262 })(); |
OLD | NEW |