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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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>' + |
60 '</ul>' + | 60 '</ul>' + |
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>' + | 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>' + |
62 '<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>' + |
63 '<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>'); |
64 | 64 |
65 onebar.select('unexpected'); | 65 onebar.select('unexpected'); |
66 equal(window.location.hash, '#unexpected'); | 66 equal(window.location.hash, '#unexpected'); |
67 | 67 |
68 $(onebar).detach(); | 68 onebar.remove(); |
69 }); | 69 }); |
70 | 70 |
71 // 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
. |
72 test("results.ResultsGrid", 8, function() { | 72 test("results.ResultsGrid", 8, function() { |
73 var grid = new ui.results.ResultsGrid() | 73 var grid = new ui.results.ResultsGrid() |
74 grid.addResults([ | 74 grid.addResults([ |
75 'http://example.com/foo-bar-diff.txt', | 75 'http://example.com/foo-bar-diff.txt', |
76 'http://example.com/foo-bar-expected.png', | 76 'http://example.com/foo-bar-expected.png', |
77 'http://example.com/foo-bar-actual.png', | 77 'http://example.com/foo-bar-actual.png', |
78 'http://example.com/foo-bar-diff.png', | 78 'http://example.com/foo-bar-diff.png', |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 '<td>554</td>' + | 296 '<td>554</td>' + |
297 '</tr>' + | 297 '</tr>' + |
298 '</table>' + | 298 '</table>' + |
299 '</details>' + | 299 '</details>' + |
300 ', trunk is at <a href="http://src.chromium.org/viewvc/blink?vie
w=rev&revision=555">555</a>'); | 300 ', trunk is at <a href="http://src.chromium.org/viewvc/blink?vie
w=rev&revision=555">555</a>'); |
301 start(); | 301 start(); |
302 }); | 302 }); |
303 }); | 303 }); |
304 | 304 |
305 })(); | 305 })(); |
OLD | NEW |