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