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

Side by Side Diff: Tools/GardeningServer/scripts/ui/results.js

Issue 201853004: Make Garden-o-matic at least readable on mobile devices (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix combinators 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
« no previous file with comments | « Tools/GardeningServer/garden-o-matic.html ('k') | Tools/GardeningServer/styles/common.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 12 matching lines...) Expand all
23 * THE POSSIBILITY OF SUCH DAMAGE. 23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 var ui = ui || {}; 26 var ui = ui || {};
27 ui.results = ui.results || {}; 27 ui.results = ui.results || {};
28 28
29 (function(){ 29 (function(){
30 30
31 var kResultsPrefetchDelayMS = 500; 31 var kResultsPrefetchDelayMS = 500;
32 32
33 // FIXME: Rather than using table, should we be using something fancier? 33 ui.results.Comparison = base.extends('div', {
34 ui.results.Comparison = base.extends('table', {
35 init: function() 34 init: function()
36 { 35 {
37 this.className = 'comparison'; 36 this.className = 'comparison';
38 this.innerHTML = '<thead><tr><th>Expected</th><th>Actual</th><th>Diff</t h></tr></thead>' + 37 this.innerHTML = '<div><h2>Expected</h2><div class="results-container ex pected"></div></div>' +
39 '<tbody><tr><td class="expected result-container"></td> <td class="actual result-container"></td><td class="diff result-container"></td> </tr></tbody>'; 38 '<div><h2>Actual</h2><div class="results-container actu al"></div></div>' +
39 '<div><h2>Diff</h2><div class="results-container diff"> </div></div>';
40 }, 40 },
41 _selectorForKind: function(kind) 41 _selectorForKind: function(kind)
42 { 42 {
43 switch (kind) { 43 switch (kind) {
44 case results.kExpectedKind: 44 case results.kExpectedKind:
45 return '.expected'; 45 return '.expected';
46 case results.kActualKind: 46 case results.kActualKind:
47 return '.actual'; 47 return '.actual';
48 case results.kDiffKind: 48 case results.kDiffKind:
49 return '.diff'; 49 return '.diff';
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 { 456 {
457 this._testSelector.firstResult() 457 this._testSelector.firstResult()
458 }, 458 },
459 currentTestName: function() 459 currentTestName: function()
460 { 460 {
461 return this._testSelector.currentTestName() 461 return this._testSelector.currentTestName()
462 } 462 }
463 }); 463 });
464 464
465 })(); 465 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/garden-o-matic.html ('k') | Tools/GardeningServer/styles/common.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698