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

Side by Side Diff: go/src/infra/appengine/sheriff-o-matic/test/som-extension-build-failure-test.html

Issue 2203003006: [som] Render alerts that don't have extensions. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: add test Created 4 years, 4 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
« no previous file with comments | « go/src/infra/appengine/sheriff-o-matic/elements/som-extension-build-failure.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <meta charset="utf-8"> 1 <meta charset="utf-8">
2 <script src="/bower_components/webcomponentsjs/webcomponents.min.js"></script> 2 <script src="/bower_components/webcomponentsjs/webcomponents.min.js"></script>
3 <script src="/bower_components/web-component-tester/browser.js"></script> 3 <script src="/bower_components/web-component-tester/browser.js"></script>
4 <link rel="import" href="/bower_components/iron-test-helpers/iron-test-helpers.h tml"> 4 <link rel="import" href="/bower_components/iron-test-helpers/iron-test-helpers.h tml">
5 <link rel="import" href="/elements/som-extension-build-failure.html"> 5 <link rel="import" href="/elements/som-extension-build-failure.html">
6 <test-fixture id="basic"> 6 <test-fixture id="basic">
7 <template> 7 <template>
8 <som-extension-build-failure></som-extension-build-failure> 8 <som-extension-build-failure></som-extension-build-failure>
9 </template> 9 </template>
10 </test-fixture> 10 </test-fixture>
(...skipping 30 matching lines...) Expand all
41 reasons: [{ 41 reasons: [{
42 "step": "wekbit_tests", 42 "step": "wekbit_tests",
43 "test_names": [ 43 "test_names": [
44 "best_test", 44 "best_test",
45 ], 45 ],
46 }], 46 }],
47 }; 47 };
48 element._uberify = (url) => { return url; }; 48 element._uberify = (url) => { return url; };
49 flush( () => { 49 flush( () => {
50 let itm = element.$$("#test_results"); 50 let itm = element.$$("#test_results");
51 assert.isDefined(itm); 51 assert.isNotNull(itm);
52 assert.equal( 52 assert.equal(
53 itm.children[0].href, 53 itm.children[0].href,
54 "https://test-results.appspot.com/dashboards/flakiness_dashboard" + 54 "https://test-results.appspot.com/dashboards/flakiness_dashboard" +
55 ".html#tests=best_test&testType=wekbit_tests"); 55 ".html#tests=best_test&testType=wekbit_tests");
56 done(); 56 done();
57 }); 57 });
58 58
59 }); 59 });
60
61 test('renders suspect CLs', function(done) {
62 element.extension = {
63 reasons: [{
64 "step": "wekbit_tests",
65 "test_names": [
66 "best_test",
67 ],
68 }],
69 suspected_cls: [
70 {revision: '1234'},
71 ],
72 };
73 element._uberify = (url) => { return url; };
74 flush( () => {
75 let itm = element.$$("#findit-results");
76 assert.isNotNull(itm);
77 assert.equal(
78 itm.children[1].href, "https://crrev.com/1234");
79 done();
80 });
81
82 });
60 }); 83 });
61 })(); 84 })();
62 </script> 85 </script>
OLDNEW
« no previous file with comments | « go/src/infra/appengine/sheriff-o-matic/elements/som-extension-build-failure.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698