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

Unified Diff: sky/tests/mutation-observer/mutation-record-nullity.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/mutation-record-nullity.sky
diff --git a/sky/tests/mutation-observer/mutation-record-nullity.sky b/sky/tests/mutation-observer/mutation-record-nullity.sky
index f32da6409278b540bf348698cf97bf35051368ae..a3dfe00380bd8e2a75c64f0671e114dc79e87de2 100644
--- a/sky/tests/mutation-observer/mutation-record-nullity.sky
+++ b/sky/tests/mutation-observer/mutation-record-nullity.sky
@@ -7,7 +7,7 @@ describe('Non-relevant properties on mutation records should be null, except for
var observer = new MutationObserver(function() {});
it('on characterData records', function() {
- var text = document.createTextNode('something');
+ var text = new Text('something');
observer.observe(text, {characterData: true});
text.data = 'something else';
var record = observer.takeRecords()[0];

Powered by Google App Engine
This is Rietveld 408576698