| 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>
|
|
|