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

Unified Diff: LayoutTests/fast/dom/MutationObserver/observe-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-attributes.html
diff --git a/LayoutTests/fast/dom/MutationObserver/observe-attributes.html b/LayoutTests/fast/dom/MutationObserver/observe-attributes.html
index b2b27bae874937105315e11525304dd921e65a20..9a41ff6ee3e16511676c242d94b2886b0c9b86cf 100644
--- a/LayoutTests/fast/dom/MutationObserver/observe-attributes.html
+++ b/LayoutTests/fast/dom/MutationObserver/observe-attributes.html
@@ -803,40 +803,6 @@ function testMutateThroughAttrNodeValue() {
start();
}
-function testMutateThroughAttrNodeChild() {
- var observer;
-
- function start() {
- debug('Test that mutating an attribute by attaching a child to an attr node delivers mutation records');
-
- mutations = null;
- observer = new MutationObserver(function(mutations) {
- window.mutations = mutations;
- });
-
- div = document.createElement('div');
- div.setAttribute('data-test', 'foo');
- observer.observe(div, { attributes: true, attributeOldValue: true });
- div.attributes['data-test'].appendChild(document.createTextNode('bar'));
-
- setTimeout(finish, 0);
- }
-
- function finish() {
- shouldBe('mutations.length', '1');
- shouldBe('mutations[0].target', 'div');
- shouldBe('mutations[0].type', '"attributes"');
- shouldBe('mutations[0].attributeName', '"data-test"');
- shouldBe('mutations[0].oldValue', '"foo"');
-
- observer.disconnect();
- debug('');
- runNextTest();
- }
-
- start();
-}
-
function testSetAndRemoveAttributeNode() {
var observer;
@@ -983,7 +949,6 @@ var tests = [
testStyleAttributePropertyAccessOldValue,
testStyleAttributePropertyAccessIgnoreNoop,
testMutateThroughAttrNodeValue,
- testMutateThroughAttrNodeChild,
testSetAndRemoveAttributeNode,
testMixedNodeAndElementOperations,
testNamedNodeMapOperations

Powered by Google App Engine
This is Rietveld 408576698