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

Unified Diff: dashboard/dashboard/elements/speed-releasing-table-test.html

Issue 2619883003: More structure for speed releasing. (Closed)
Patch Set: response to comments Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dashboard/dashboard/elements/speed-releasing-table.html ('k') | dashboard/dashboard/speed_releasing.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/speed-releasing-table-test.html
diff --git a/dashboard/dashboard/elements/speed-releasing-table-test.html b/dashboard/dashboard/elements/speed-releasing-table-test.html
new file mode 100644
index 0000000000000000000000000000000000000000..c2bd886cad0ac4108c966bf4f96939c8997ddcf7
--- /dev/null
+++ b/dashboard/dashboard/elements/speed-releasing-table-test.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<!--
+Copyright 2017 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<link rel="import" href="/dashboard/elements/speed-releasing-table.html">
+<link rel="import" href="/dashboard/static/simple_xhr.html">
+<link rel="import" href="/dashboard/static/testing_common.html">
+
+<link rel="import" href="/tracing/base/unit.html">
+<link rel="import" href="/tracing/core/test_utils.html">
+
+<script>
+'use strict';
+
+tr.b.unittest.testSuite(function() {
+
+ var testOptions = {
+ tearDown: function() {
+ testing_common.clearXhrMock();
+ }
+ };
+
+ test('instantiation', function() {
+ var mockResponse = {
+ 'table_bots': ['master/bot', 'master2/bot2'],
+ 'table_tests': ['test/test', 'test2/test3'],
+ 'table_layout': '{\'this will\': \'get changed later\'}',
+ 'name': 'fakeTable',
+ };
+ testing_common.addXhrMock('/speed_releasing/undefined?=',
+ JSON.stringify(mockResponse));
+ var table = document.createElement('speed-releasing-table');
+ this.addHTMLOutput(table);
+ }, testOptions);
+
+
+});
+</script>
« no previous file with comments | « dashboard/dashboard/elements/speed-releasing-table.html ('k') | dashboard/dashboard/speed_releasing.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698