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

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

Issue 1923953003: [polymer] Switches .appendChild() to Polymer.dom()...appendChild() (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: 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/dropdown_test.html ('k') | tracing/tracing/ui/base/info_bar.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/hotkey_controller_test.html
diff --git a/tracing/tracing/ui/base/hotkey_controller_test.html b/tracing/tracing/ui/base/hotkey_controller_test.html
index 0895e724250ddae355b6ed2b026f80bfeb987c1b..f5a1e3556dde05cd73223a00b8a7a521636d7604 100644
--- a/tracing/tracing/ui/base/hotkey_controller_test.html
+++ b/tracing/tracing/ui/base/hotkey_controller_test.html
@@ -24,15 +24,15 @@ tr.b.unittest.testSuite(function() {
test('simpleHotkeyManager', function() {
var rootElement = document.createElement('div');
- document.body.appendChild(rootElement);
+ Polymer.dom(document.body).appendChild(rootElement);
try {
var elementShadow = rootElement.createShadowRoot();
var hkc = document.createElement('tv-ui-b-hotkey-controller');
- elementShadow.appendChild(hkc);
+ Polymer.dom(elementShadow).appendChild(hkc);
var subElement = document.createElement('div');
- elementShadow.appendChild(subElement);
+ Polymer.dom(elementShadow).appendChild(subElement);
assert.equal(tr.b.getHotkeyControllerForElement(subElement), hkc);
@@ -63,19 +63,19 @@ tr.b.unittest.testSuite(function() {
test('nestedHotkeyController', function() {
var rootElement = document.createElement('div');
- document.body.appendChild(rootElement);
+ Polymer.dom(document.body).appendChild(rootElement);
try {
var elementShadow = rootElement.createShadowRoot();
var hkc = document.createElement('tv-ui-b-hotkey-controller');
- elementShadow.appendChild(hkc);
+ Polymer.dom(elementShadow).appendChild(hkc);
var subElement = document.createElement('div');
- elementShadow.appendChild(subElement);
+ Polymer.dom(elementShadow).appendChild(subElement);
assert.equal(tr.b.getHotkeyControllerForElement(elementShadow), hkc);
var subHKC = document.createElement('tv-ui-b-hotkey-controller');
- subElement.appendChild(subHKC);
+ Polymer.dom(subElement).appendChild(subHKC);
assert.equal(tr.b.getHotkeyControllerForElement(subElement), subHKC);
@@ -99,15 +99,15 @@ tr.b.unittest.testSuite(function() {
test('inputInsideHKC', function() {
var rootElement = document.createElement('div');
- document.body.appendChild(rootElement);
+ Polymer.dom(document.body).appendChild(rootElement);
try {
var elementShadow = rootElement.createShadowRoot();
var hkc = document.createElement('tv-ui-b-hotkey-controller');
- elementShadow.appendChild(hkc);
+ Polymer.dom(elementShadow).appendChild(hkc);
var inputEl = document.createElement('input');
- elementShadow.appendChild(inputEl);
+ Polymer.dom(elementShadow).appendChild(inputEl);
var didGetCalled = false;
hkc.addHotKey(new tr.ui.b.HotKey({
« no previous file with comments | « tracing/tracing/ui/base/dropdown_test.html ('k') | tracing/tracing/ui/base/info_bar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698