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

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

Issue 183923025: Garden-o-matic: Introduce an option to open links in a new window (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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>' + 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>' + 60 '<li class="ui-state-default ui-corner-top ui-state-disabled"><a hre f="#results">Results</a></li>' +
61 '</ul>' + 61 '</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>' +
62 '<div id="unexpected" class="ui-tabs-panel ui-widget-content ui-corner-b ottom"></div>' + 63 '<div id="unexpected" class="ui-tabs-panel ui-widget-content ui-corner-b ottom"></div>' +
63 '<div id="expected" class="ui-tabs-panel ui-widget-content ui-corner-bot tom ui-tabs-hide"></div>' + 64 '<div id="expected" class="ui-tabs-panel ui-widget-content ui-corner-bot tom ui-tabs-hide"></div>' +
64 '<div id="results" class="ui-tabs-panel ui-widget-content ui-corner-bott om ui-tabs-hide"></div>'); 65 '<div id="results" class="ui-tabs-panel ui-widget-content ui-corner-bott om ui-tabs-hide"></div>');
65 66
66 onebar.select('expected'); 67 onebar.select('expected');
67 equal(window.location.hash, '#expected'); 68 equal(window.location.hash, '#expected');
68 onebar.select('unexpected'); 69 onebar.select('unexpected');
69 equal(window.location.hash, '#unexpected'); 70 equal(window.location.hash, '#unexpected');
70 71
71 $(onebar).detach(); 72 $(onebar).detach();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 simulator.runTest(function() { 218 simulator.runTest(function() {
218 treeStatus = new ui.TreeStatus(); 219 treeStatus = new ui.TreeStatus();
219 }).then(function() { 220 }).then(function() {
220 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>');
221 start(); 222 start();
222 }); 223 });
223 }); 224 });
224 225
225 226
226 })(); 227 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698