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

Unified Diff: sky/tests/mutation-observer/shadow-dom.sky

Issue 879733002: Replace createTextNode with new Text(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/tests/mutation-observer/observe-options-character-data.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/mutation-observer/shadow-dom.sky
diff --git a/sky/tests/mutation-observer/shadow-dom.sky b/sky/tests/mutation-observer/shadow-dom.sky
index f2d1f49b28814a63cbd6ad82241307af9b0cdf33..9be869decd9d7c09adf1bc0a0703c924bd4f1f7c 100644
--- a/sky/tests/mutation-observer/shadow-dom.sky
+++ b/sky/tests/mutation-observer/shadow-dom.sky
@@ -7,7 +7,7 @@ describe('MutationObservers', function() {
it('should handle shadow dom', function() {
function mutate(element) {
element.setAttribute('data-foo', 'bar');
- element.insertBefore(document.createTextNode('hello'), element.firstChild);
+ element.insertBefore(new Text('hello'), element.firstChild);
element.firstChild.textContent = 'goodbye';
element.removeChild(element.firstChild);
}
« no previous file with comments | « sky/tests/mutation-observer/observe-options-character-data.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698