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

Side by Side Diff: appengine/config_service/ui/test/config-ui/config-set_test.html

Issue 2991013002: config_service: Added revision and timestamp to config-set-cards and config-set pages (Closed)
Patch Set: Nit: forgot to add launch icon to config set page Created 3 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
OLDNEW
1 <!-- 1 <!--
2 Copyright 2017 The LUCI Authors. All rights reserved. 2 Copyright 2017 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 --> 5 -->
6 6
7 <!doctype html> 7 <!doctype html>
8 <html lang="en"> 8 <html lang="en">
9 <head> 9 <head>
10 <meta charset="utf-8"> 10 <meta charset="utf-8">
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }); 75 });
76 76
77 test('sets isLoading by default', function() { 77 test('sets isLoading by default', function() {
78 assert.equal(config_set.isLoading, true); 78 assert.equal(config_set.isLoading, true);
79 }); 79 });
80 80
81 test('gets iron-ajax response', function (done) { 81 test('gets iron-ajax response', function (done) {
82 var param = { 82 var param = {
83 config_sets: [{ 83 config_sets: [{
84 files: [{path: "OWNERS"}, {path: "README.md"}], 84 files: [{path: "OWNERS"}, {path: "README.md"}],
85 last_import_attempt: { success: true }, 85 last_import_attempt: {
86 success: true,
87 revision: {
88 url: "https://test.com",
89 timestamp: "1234567890"
90 }
91 }
86 }] 92 }]
87 }; 93 };
88 setserver(param); 94 setserver(param);
89 request = ajax.generateRequest(); 95 request = ajax.generateRequest();
90 server.respond(); 96 server.respond();
91 assert.equal(request.status, 200); 97 assert.equal(request.status, 200);
92 assert.isObject(request.response); 98 assert.isObject(request.response);
93 config_set.addEventListener('processedConfigFiles', function() { 99 config_set.addEventListener('processedConfigFiles', function() {
94 assert.equal(config_set.isLoading, false); 100 assert.equal(config_set.isLoading, false);
95 assert.equal(config_set.files.length, 2); 101 assert.equal(config_set.files.length, 2);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 assert.equal(config_set.errorMessage, "Internal server error."); 382 assert.equal(config_set.errorMessage, "Internal server error.");
377 done(); 383 done();
378 }.bind(config_set)); 384 }.bind(config_set));
379 }); 385 });
380 386
381 }); 387 });
382 388
383 </script> 389 </script>
384 </body> 390 </body>
385 </html> 391 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698