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

Unified Diff: LayoutTests/fast/dom/MutationObserver/observe-options-attributes.html

Issue 1158433004: Remove Attr child nodes (making Attr a Node, not a ContainerNode) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address feedback Created 5 years, 7 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: LayoutTests/fast/dom/MutationObserver/observe-options-attributes.html
diff --git a/LayoutTests/fast/dom/MutationObserver/observe-options-attributes.html b/LayoutTests/fast/dom/MutationObserver/observe-options-attributes.html
deleted file mode 100644
index cc7faab429f79b71f30ec4c4006561566ae0d8a5..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/MutationObserver/observe-options-attributes.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<script src="../../../resources/js-test.js"></script>
-<script>
-
-description('Test MutationObserver.observe options related to attributes');
-
-var observer = new MutationObserver(function() {});
-var element = document.createElement('div');
-element.setAttribute('data-test', '1');
-
-observer.observe(element, {attributeOldValue: true});
-element.setAttribute('data-test', '1');
-var records = observer.takeRecords();
-shouldBe('records.length', '1');
-shouldBeEqualToString('records[0].oldValue', '1');
-observer.disconnect();
-
-observer.observe(element, {attributeOldValue: false});
-element.setAttribute('data-test', '1');
-var records = observer.takeRecords();
-shouldBe('records.length', '1');
-shouldBeNull('records[0].oldValue');
-observer.disconnect();
-
-observer.observe(element, {attributeFilter: ['data-test']});
-element.setAttribute('data-test', '2');
-var records = observer.takeRecords();
-shouldBe('records.length', '1');
-shouldBeNull('records[0].oldValue');
-observer.disconnect();
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698