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

Unified Diff: tracing/tracing/ui/base/overlay_test.html

Issue 1928873003: Use Polymer.dom with many dom manipulations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: fixes Created 4 years, 8 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/base/overlay.html ('k') | tracing/tracing/ui/base/pie_chart.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/overlay_test.html
diff --git a/tracing/tracing/ui/base/overlay_test.html b/tracing/tracing/ui/base/overlay_test.html
index 2d432b9d27588e97d5e7b71546c3c356dded1ca4..66c2905bb90ccaaadc259dce93734dbc661b0e5a 100644
--- a/tracing/tracing/ui/base/overlay_test.html
+++ b/tracing/tracing/ui/base/overlay_test.html
@@ -37,9 +37,9 @@ tr.b.unittest.testSuite(function() {
test('instantiate', function() {
var dlg = new tr.ui.b.Overlay();
- dlg.classList.add('example-overlay');
+ Polymer.dom(dlg).classList.add('example-overlay');
dlg.title = 'ExampleOverlay';
- dlg.innerHTML = 'hello';
+ Polymer.dom(dlg).innerHTML = 'hello';
Polymer.dom(dlg.buttons).appendChild(makeButton('i am a button'));
Polymer.dom(dlg.buttons).appendChild(makeCloseButton(dlg));
Polymer.dom(dlg.buttons).appendChild(tr.ui.b.createSpan(
@@ -49,18 +49,18 @@ tr.b.unittest.testSuite(function() {
test('instantiate_noButtons', function() {
var dlg = new tr.ui.b.Overlay();
- dlg.classList.add('example-overlay');
+ Polymer.dom(dlg).classList.add('example-overlay');
dlg.title = 'ExampleOverlay';
- dlg.innerHTML = 'hello';
+ Polymer.dom(dlg).innerHTML = 'hello';
addShowButtonForDialog.call(this, dlg);
});
test('instantiate_disableUserClose', function() {
var dlg = new tr.ui.b.Overlay();
- dlg.classList.add('example-overlay');
+ Polymer.dom(dlg).classList.add('example-overlay');
dlg.userCanClose = false;
dlg.title = 'Unclosable';
- dlg.innerHTML = 'This has no close X button.';
+ Polymer.dom(dlg).innerHTML = 'This has no close X button.';
Polymer.dom(dlg.buttons).appendChild(makeCloseButton(dlg));
addShowButtonForDialog.call(this, dlg);
});
« no previous file with comments | « tracing/tracing/ui/base/overlay.html ('k') | tracing/tracing/ui/base/pie_chart.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698