Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / MutationObserver / observe-options-character-data.html
blob99a436b42ad76cf63d0ed17f0b3f405d22cdd875
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
5 description('Test MutationObserver.observe options related to character data');
7 var observer = new MutationObserver(function() {});
8 var text = document.createTextNode('0');
10 observer.observe(text, {characterDataOldValue: true});
11 text.data = '1';
12 var records = observer.takeRecords();
13 shouldBe('records.length', '1');
14 shouldBeEqualToString('records[0].oldValue', '0');
15 observer.disconnect();
17 observer.observe(text, {characterDataOldValue: false});
18 text.data = '2';
19 var records = observer.takeRecords();
20 shouldBe('records.length', '1');
21 shouldBeNull('records[0].oldValue');
22 observer.disconnect();
24 </script>