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

Side by Side Diff: appengine_apps/test_results/static-dashboards/ui_unittests.js

Issue 498083002: Make flakiness dashboard links to googlesource work post git migration. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@deployable
Patch Set: move test to the right location Created 6 years, 3 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
OLDNEW
1 // Copyright (C) 2013 Google Inc. All rights reserved. 1 // Copyright (C) 2013 Google Inc. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * 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 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer 10 // copyright notice, this list of conditions and the following disclaimer
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 equal(container.querySelectorAll('input').length, 1); 42 equal(container.querySelectorAll('input').length, 1);
43 43
44 container.innerHTML = ui.html.navbar('<div id="test-div"></div>'); 44 container.innerHTML = ui.html.navbar('<div id="test-div"></div>');
45 ok(container.querySelector('#test-div')); 45 ok(container.querySelector('#test-div'));
46 }) 46 })
47 47
48 test('chromiumRevisionLinkOneRevision', 1, function() { 48 test('chromiumRevisionLinkOneRevision', 1, function() {
49 var testResults = {}; 49 var testResults = {};
50 testResults[results.CHROME_REVISIONS] = [3, 2, 1]; 50 testResults[results.CHROME_REVISIONS] = [3, 2, 1];
51 var html = ui.html.chromiumRevisionLink(testResults, 1); 51 var html = ui.html.chromiumRevisionLink(testResults, 1);
52 equal(html, '<a href="http://src.chromium.org/viewvc/chrome?view=rev&revisio n=2">r2</a>'); 52 equal(html, '<a href="https://crrev.com/2">r2</a>');
53 }); 53 });
54 54
55 test('chromiumRevisionLinkAtRevision', 1, function() { 55 test('chromiumRevisionLinkAtRevision', 1, function() {
56 var testResults = {}; 56 var testResults = {};
57 testResults[results.CHROME_REVISIONS] = [3, 2, 2]; 57 testResults[results.CHROME_REVISIONS] = [3, 2, 2];
58 var html = ui.html.chromiumRevisionLink(testResults, 1); 58 var html = ui.html.chromiumRevisionLink(testResults, 1);
59 equal(html, 'At <a href="http://src.chromium.org/viewvc/chrome?view=rev&revi sion=2">r2</a>'); 59 equal(html, 'At <a href="https://crrev.com/2">r2</a>');
60 }); 60 });
61 61
62 test('chromiumRevisionLinkRevisionRange', 1, function() { 62 test('chromiumRevisionLinkRevisionRange', 1, function() {
63 var testResults = {}; 63 var testResults = {};
64 testResults[results.CHROME_REVISIONS] = [5, 2]; 64 testResults[results.CHROME_REVISIONS] = [5, 2];
65 var html = ui.html.chromiumRevisionLink(testResults, 0); 65 var html = ui.html.chromiumRevisionLink(testResults, 0);
66 equal(html, '<a href="http://build.chromium.org/f/chromium/perf/dashboard/ui /changelog.html?url=/trunk/src&range=3:5&mode=html">r3 to r5</a>'); 66 equal(html, '<a href="../../revision_range?start=2&end=5">r3 to r5</a>');
67 }); 67 });
68 68
69 test('blinkRevisionLinkOneRevision', 1, function() { 69 test('blinkRevisionLinkOneRevision', 1, function() {
70 var testResults = {}; 70 var testResults = {};
71 testResults[results.BLINK_REVISIONS] = [3, 2, 1]; 71 testResults[results.BLINK_REVISIONS] = [3, 2, 1];
72 var html = ui.html.blinkRevisionLink(testResults, 1); 72 var html = ui.html.blinkRevisionLink(testResults, 1);
73 equal(html, '<a href="http://src.chromium.org/viewvc/blink?view=rev&revision =2">r2</a>'); 73 equal(html, '<a href="http://src.chromium.org/viewvc/blink?view=rev&revision =2">r2</a>');
74 }); 74 });
75 75
76 test('blinkRevisionLinkAtRevision', 1, function() { 76 test('blinkRevisionLinkAtRevision', 1, function() {
77 var testResults = {}; 77 var testResults = {};
78 testResults[results.BLINK_REVISIONS] = [3, 2, 2]; 78 testResults[results.BLINK_REVISIONS] = [3, 2, 2];
79 var html = ui.html.blinkRevisionLink(testResults, 1); 79 var html = ui.html.blinkRevisionLink(testResults, 1);
80 equal(html, 'At <a href="http://src.chromium.org/viewvc/blink?view=rev&revis ion=2">r2</a>'); 80 equal(html, 'At <a href="http://src.chromium.org/viewvc/blink?view=rev&revis ion=2">r2</a>');
81 }); 81 });
82 82
83 test('blinkRevisionLinkRevisionRange', 1, function() { 83 test('blinkRevisionLinkRevisionRange', 1, function() {
84 var testResults = {}; 84 var testResults = {};
85 testResults[results.BLINK_REVISIONS] = [5, 2]; 85 testResults[results.BLINK_REVISIONS] = [5, 2];
86 var html = ui.html.blinkRevisionLink(testResults, 0); 86 var html = ui.html.blinkRevisionLink(testResults, 0);
87 equal(html, '<a href="http://build.chromium.org/f/chromium/perf/dashboard/ui /changelog_blink.html?url=/trunk&range=3:5&mode=html">r3 to r5</a>'); 87 equal(html, '<a href="http://build.chromium.org/f/chromium/perf/dashboard/ui /changelog_blink.html?url=/trunk&range=3:5&mode=html">r3 to r5</a>');
88 }); 88 });
OLDNEW
« no previous file with comments | « appengine_apps/test_results/static-dashboards/ui.js ('k') | appengine_module/test_results/handlers/redirector.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698