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

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

Issue 1967613003: Migrate child element manipulation, innerHTML, classList, attributes, (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 7 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: 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);
});

Powered by Google App Engine
This is Rietveld 408576698