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

Unified Diff: tracing/tracing/value/ui/#value_set_view_test.html#

Issue 2165023006: [polymer] Delete spurious backup files that I uploaded during rebase (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-rebase
Patch Set: Created 4 years, 5 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 | « tracing/tracing/ui/analysis/#multi_event_details_table.html# ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/#value_set_view_test.html#
diff --git a/tracing/tracing/value/ui/#value_set_view_test.html# b/tracing/tracing/value/ui/#value_set_view_test.html#
deleted file mode 100644
index 421a739281df2ddd3ed067f2bff474c1c910fb46..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/ui/#value_set_view_test.html#
+++ /dev/null
@@ -1,182 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright 2016 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="/tracing/value/ui/value_set_table.html">
-<link rel="import" href="/tracing/value/ui/value_set_view.html">
-<link rel="import" href="/tracing/value/value_set.html">
-
-<polymer-element name='test-value-set-view'>
- <template>
- <style>
- :host {
- display: flex;
- flex-direction: column;
- }
- </style>
- <content></content>
- </template>
-</polymer-element>
-
-<script>
-'use strict';
-
-var useTestView = false;
-
-tr.exportTo('tr.v.ui', function() {
- Polymer('test-value-set-view', {
- supportsValueSet: function(values) {
- return useTestView;
- },
-
- get tabLabel() {
- return 'Test';
- },
-
- ready: function() {
- this.values_ = undefined;
- },
-
- get values() {
- return this.values_;
- },
-
- /**
- * @param {!tr.v.ValueSet} values
- */n
- set values(values) {
- this.values_ = values;
- }
- });
-
- tr.v.ui.registerValueSetView('test-value-set-view');
-
- return {};
-});
-
-tr.b.unittest.testSuite(function() {
- var TEST_NUMERIC_BUILDER = tr.v.NumericBuilder.createLinear(
- tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 1000),
- 20);
-
- test('instantiate0', function() {
- // Empty setting, single view
- // Test that the single view is automatically selected,
- // and that the tab-strip is hidden.
- tr.b.Settings.set(tr.v.ui.SELECTED_TAB_SETTINGS_KEY, '');
- useTestView = false;
- var view = document.createElement('tr-v-ui-value-set-view');
- var values = new tr.v.ValueSet();
-
- var numeric = TEST_NUMERIC_BUILDER.build();
- for (var i = 0; i < 1e2; ++i) {
- numeric.add(Math.random() * TEST_NUMERIC_BUILDER.maxBinBoundary);
- }
- var foo = new tr.v.NumericValue('foo', numeric, {description: 'bar'});
- values.addValue(foo);
-
- view.values = values;
- this.addHTMLOutput(view);
-
- var tabView = tr.b.findDeepElementMatchingPredicate(
- view, function(element) {
- return element.tagName.toLowerCase() === 'tr-ui-a-tab-view';
- });
- assert.isTrue(tabView.children[0].selected);
- assert.isTrue(tabView.tabsHidden);
- });
-
- test('instantiate1', function() {
- // Empty setting, two views
- // Test that the 0th view is automatically selected,
- // and that the tab-strip is visible.
- tr.b.Settings.set(tr.v.ui.SELECTED_TAB_SETTINGS_KEY, '');
- useTestView = true;
- var view = document.createElement('tr-v-ui-value-set-view');
- var values = new tr.v.ValueSet();
-
- var numeric = TEST_NUMERIC_BUILDER.build();
- for (var i = 0; i < 1e2; ++i) {
- numeric.add(Math.random() * TEST_NUMERIC_BUILDER.maxBinBoundary);
- }
- var foo = new tr.v.NumericValue('foo', numeric, {description: 'bar'});
- values.addValue(foo);
-
- view.values = values;
- this.addHTMLOutput(view);
-
- var tabView = tr.b.findDeepElementMatchingPredicate(
- view, function(element) {
- return element.tagName.toLowerCase() === 'tr-ui-a-tab-view';
- });
- assert.isTrue(tabView.children[0].selected);
- assert.isFalse(tabView.tabsHidden);
- });
-
- test('instantiate2', function() {
- // Set setting to the test view, two views
- // Test that the test view is automatically selected,
- // and that the tab-strip is visible.
- tr.b.Settings.set(tr.v.ui.SELECTED_TAB_SETTINGS_KEY, 'test-value-set-view');
- useTestView = true;
- var view = document.createElement('tr-v-ui-value-set-view');
- var values = new tr.v.ValueSet();
-
- var numeric = TEST_NUMERIC_BUILDER.build();
- for (var i = 0; i < 1e2; ++i) {
- numeric.add(Math.random() * TEST_NUMERIC_BUILDER.maxBinBoundary);
- }
- var foo = new tr.v.NumericValue('foo', numeric, {description: 'bar'});
- values.addValue(foo);
-
- view.values = values;
- this.addHTMLOutput(view);
-
- var tabView = tr.b.findDeepElementMatchingPredicate(
- view, function(element) {
- return element.tagName.toLowerCase() === 'tr-ui-a-tab-view';
- });
- assert.isTrue(tabView.children[1].selected);
- assert.isFalse(tabView.tabsHidden);
-
- // Test that selecting the Table view changes the setting.
- tabView.selectedTab = tabView.children[0];
- return new Promise(function(resolve, reject) {
- assert.strictEqual(
- tr.b.Settings.get(tr.v.ui.SELECTED_TAB_SETTINGS_KEY),
- 'tr-v-ui-value-set-table');
- resolve();
- });
- });
-
- test('instantiate3', function() {
- // Set setting to the test view, but disable it
- // Test that the 0th view is automatically selected,
- // and that the tab-strip is hidden.
- tr.b.Settings.set(tr.v.ui.SELECTED_TAB_SETTINGS_KEY, 'test-value-set-view');
- useTestView = false;
- var view = document.createElement('tr-v-ui-value-set-view');
- var values = new tr.v.ValueSet();
-
- var numeric = TEST_NUMERIC_BUILDER.build();
- for (var i = 0; i < 1e2; ++i) {
- numeric.add(Math.random() * TEST_NUMERIC_BUILDER.maxBinBoundary);
- }
- var foo = new tr.v.NumericValue('foo', numeric, {description: 'bar'});
- values.addValue(foo);
-
- view.values = values;
- this.addHTMLOutput(view);
-
- var tabView = tr.b.findDeepElementMatchingPredicate(
- view, function(element) {
- return element.tagName.toLowerCase() === 'tr-ui-a-tab-view';
- });
- assert.isTrue(tabView.children[0].selected);
- assert.isTrue(tabView.tabsHidden);
- });
-});
-</script>
« no previous file with comments | « tracing/tracing/ui/analysis/#multi_event_details_table.html# ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698