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 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 }, | 40 }, |
41 "userscripts/another-test.html": { | 41 "userscripts/another-test.html": { |
42 "Mock Builder": { | 42 "Mock Builder": { |
43 "expected": "PASS", | 43 "expected": "PASS", |
44 "actual": "TEXT" | 44 "actual": "TEXT" |
45 } | 45 } |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 test("ui.onebar", 3, function() { | 49 test("ui.onebar", 2, function() { |
50 if (window.location.hash) { | 50 if (window.location.hash) { |
51 window.location.hash = ''; | 51 window.location.hash = ''; |
52 } | 52 } |
53 | 53 |
54 onebar = new ui.onebar(); | 54 onebar = new ui.onebar(); |
55 onebar.attach(); | 55 onebar.attach(); |
56 equal(onebar.innerHTML, | 56 equal(onebar.innerHTML, |
57 '<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-hea
der ui-corner-all">' + | 57 '<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-hea
der ui-corner-all">' + |
58 '<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state
-active"><a href="#unexpected">Unexpected Failures</a></li>' + | 58 '<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state
-active"><a href="#unexpected">Unexpected Failures</a></li>' + |
59 '<li class="ui-state-default ui-corner-top"><a href="#expected">Expe
cted Failures</a></li>' + | |
60 '<li class="ui-state-default ui-corner-top ui-state-disabled"><a hre
f="#results">Results</a></li>' + | 59 '<li class="ui-state-default ui-corner-top ui-state-disabled"><a hre
f="#results">Results</a></li>' + |
61 '</ul>' + | 60 '</ul>' + |
62 '<div id="link-handling"><input type="checkbox" id="new-window-for-links
"><label for="new-window-for-links">Open links in new window</label></div>' + | 61 '<div id="link-handling"><input type="checkbox" id="new-window-for-links
"><label for="new-window-for-links">Open links in new window</label></div>' + |
63 '<div id="unexpected" class="ui-tabs-panel ui-widget-content ui-corner-b
ottom"></div>' + | 62 '<div id="unexpected" class="ui-tabs-panel ui-widget-content ui-corner-b
ottom"></div>' + |
64 '<div id="expected" class="ui-tabs-panel ui-widget-content ui-corner-bot
tom ui-tabs-hide"></div>' + | |
65 '<div id="results" class="ui-tabs-panel ui-widget-content ui-corner-bott
om ui-tabs-hide"></div>'); | 63 '<div id="results" class="ui-tabs-panel ui-widget-content ui-corner-bott
om ui-tabs-hide"></div>'); |
66 | 64 |
67 onebar.select('expected'); | |
68 equal(window.location.hash, '#expected'); | |
69 onebar.select('unexpected'); | 65 onebar.select('unexpected'); |
70 equal(window.location.hash, '#unexpected'); | 66 equal(window.location.hash, '#unexpected'); |
71 | 67 |
72 $(onebar).detach(); | 68 $(onebar).detach(); |
73 }); | 69 }); |
74 | 70 |
75 // FIXME: These three results.* tests should be moved ot ui/results_unittests.js
. | 71 // FIXME: These three results.* tests should be moved ot ui/results_unittests.js
. |
76 test("results.ResultsGrid", 8, function() { | 72 test("results.ResultsGrid", 8, function() { |
77 var grid = new ui.results.ResultsGrid() | 73 var grid = new ui.results.ResultsGrid() |
78 grid.addResults([ | 74 grid.addResults([ |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 '<td>554</td>' + | 358 '<td>554</td>' + |
363 '</tr>' + | 359 '</tr>' + |
364 '</table>' + | 360 '</table>' + |
365 '</details>' + | 361 '</details>' + |
366 ', trunk is at <a href="http://src.chromium.org/viewvc/blink?vie
w=rev&revision=555">555</a>'); | 362 ', trunk is at <a href="http://src.chromium.org/viewvc/blink?vie
w=rev&revision=555">555</a>'); |
367 start(); | 363 start(); |
368 }); | 364 }); |
369 }); | 365 }); |
370 | 366 |
371 })(); | 367 })(); |
OLD | NEW |