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

Unified Diff: dashboard/dashboard/elements/speed-releasing-page-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
Index: dashboard/dashboard/elements/speed-releasing-page-test.html
diff --git a/dashboard/dashboard/elements/speed-releasing-page-test.html b/dashboard/dashboard/elements/speed-releasing-page-test.html
new file mode 100644
index 0000000000000000000000000000000000000000..70a7e88cc7abcd8e4068f29863056efd504c6887
--- /dev/null
+++ b/dashboard/dashboard/elements/speed-releasing-page-test.html
@@ -0,0 +1,39 @@
+<!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-page.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('instantiate_WithList', function() {
+ var mockResponse = {
+ 'list': ['report1', 'report2', 'report3', 'report4'],
+ 'show_list': true,
+ };
+ uri.getPathName = function() { return ''; };
+ testing_common.addXhrMock('/speed_releasing/?=',
+ JSON.stringify(mockResponse));
+ var page = document.createElement('speed-releasing-page');
+ this.addHTMLOutput(page);
+ }, testOptions);
+
+});
+</script>
« no previous file with comments | « dashboard/dashboard/elements/speed-releasing-page.html ('k') | dashboard/dashboard/elements/speed-releasing-table.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698