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

Unified Diff: sky/tests/mutation-observer/delivery-order.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
Index: sky/tests/mutation-observer/delivery-order.sky
diff --git a/sky/tests/mutation-observer/delivery-order.sky b/sky/tests/mutation-observer/delivery-order.sky
index 2a1f65a951e28c46718a879c049022df41fe8501..bf056d1aa275fd6d9468174450466f0798bc5ca4 100644
--- a/sky/tests/mutation-observer/delivery-order.sky
+++ b/sky/tests/mutation-observer/delivery-order.sky
@@ -28,7 +28,7 @@ describe('MutationObserver', function() {
observers[6].observe(div, {characterData: true, subtree: true});
observers[8].observe(div, {attributes: true});
div.setAttribute('foo', 'bar');
- div.appendChild(document.createTextNode('hello'));
+ div.appendChild(new Text('hello'));
div.firstChild.textContent = 'goodbye';
setTimeout(function() {
assert.deepEqual(order, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
« no previous file with comments | « sky/tests/editing/delete_block_contents.sky ('k') | sky/tests/mutation-observer/mutation-callback-non-element-crash.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698