Skip to content

[WIP] Mutation observer test fix - #21456

Closed
KiChjang wants to merge 3 commits into
servo:masterfrom
KiChjang:mutation-observer-test-fix
Closed

KiChjang wants to merge 3 commits into
servo:masterfrom
KiChjang:mutation-observer-test-fix

Conversation

@KiChjang

@KiChjang KiChjang commented Aug 18, 2018 •

Copy link
Copy Markdown
Contributor

Fixes #21233.


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/create.rs, components/script/dom/globalscope.rs, components/script/dom/element.rs, components/script/dom/htmlscriptelement.rs, components/script/dom/servoparser/mod.rs and 1 more
  • @KiChjang: components/script/dom/create.rs, components/script/dom/globalscope.rs, components/script/dom/element.rs, components/script/dom/htmlscriptelement.rs, components/script/dom/servoparser/mod.rs and 1 more

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 18, 2018
@KiChjang

Copy link
Copy Markdown
Contributor Author

@bors-servo try=wpt

bors-servo pushed a commit that referenced this pull request Aug 31, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 5ebf84d with merge 29e4c4b...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 31, 2018
@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from 5ebf84d to c9abbee Compare September 12, 2018 15:33
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Sep 12, 2018
@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch 3 times, most recently from 3588996 to 351f00c Compare September 16, 2018 03:32
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #21737) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Sep 20, 2018
@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from 351f00c to 74deeff Compare September 23, 2018 10:17
@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from 74deeff to d5fce71 Compare October 7, 2018 01:00
@KiChjang KiChjang removed the S-needs-rebase There are merge conflict errors. label Oct 7, 2018
@KiChjang

KiChjang commented Oct 7, 2018

Copy link
Copy Markdown
Contributor Author

Ok, so I'm quite convinced that this is a matter of ordering. During debugging, I'm able to see that mutation events are being fired for adding inserted_element and inserted_script, but they are ordered AFTER the text node additions for <div id=log>:

Details
pid:55426 MutationRecord {
 0:48.85 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.85 pid:55426  target: NodeInfo { uniqueId: "e9aa2a2d4d0b41cc9c01029372630a2f", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9d4fe44c7674fc58afa8bba09319413", nodeType: 1, namespaceURI: "", nodeName: "BODY", numChildren: 7, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.85 pid:55426  added: Some([NodeInfo { uniqueId: "1e9985eb5dc24cb0aae52d53b9b02320", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "P", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "n00" }], isDocumentElement: false, shortValue: "", incompleteValue: false }]),
 0:48.85 pid:55426  removed: None,
 0:48.85 pid:55426  prev: Some(NodeInfo { uniqueId: "d45e837b2783431da87ee94071d7889c", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "s001" }], isDocumentElement: false, shortValue: "", incompleteValue: false }),
 0:48.85 pid:55426  next: None,
 0:48.85 pid:55426 }
 0:48.85 pid:55426 MutationRecord {
 0:48.85 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.86 pid:55426  target: NodeInfo { uniqueId: "e9aa2a2d4d0b41cc9c01029372630a2f", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9d4fe44c7674fc58afa8bba09319413", nodeType: 1, namespaceURI: "", nodeName: "BODY", numChildren: 7, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.86 pid:55426  added: Some([NodeInfo { uniqueId: "b0ee85ddec58463facd61eba1ba3ad04", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "s002" }], isDocumentElement: false, shortValue: "", incompleteValue: false }]),
 0:48.86 pid:55426  removed: None,
 0:48.86 pid:55426  prev: Some(NodeInfo { uniqueId: "1e9985eb5dc24cb0aae52d53b9b02320", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "P", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "n00" }], isDocumentElement: false, shortValue: "", incompleteValue: false }),
 0:48.86 pid:55426  next: None,
 0:48.86 pid:55426 }
 0:48.86 pid:55426 MutationRecord {
 0:48.86 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.86 pid:55426  target: NodeInfo { uniqueId: "b0ee85ddec58463facd61eba1ba3ad04", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "s002" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.86 pid:55426  added: Some([NodeInfo { uniqueId: "5fd5516fe36c4a08b127a50d276e092e", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "b0ee85ddec58463facd61eba1ba3ad04", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "\n  var newScript = document.createElement(\"script\");\n  setupTest.step(function() {\n    newScript.textContent = \"document.body.appendChild(newElement);\";\n    newScript.id = \"inserted_script\";\n    document.getElementById(\"n00\").appendChild(newScript);\n  });\n  if (testCounter < 1) {\n    insertionTest.step(\n      function () {\n        assert_unreached(\"document observer did not trigger\");\n      });\n  }\n", incompleteValue: false }]),
 0:48.86 pid:55426  removed: None,
 0:48.86 pid:55426  prev: None,
 0:48.86 pid:55426  next: None,
 0:48.86 pid:55426 }
 0:48.86 pid:55426 MutationRecord {
 0:48.86 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.86 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.86 pid:55426  added: Some([NodeInfo { uniqueId: "2fedba3195df444c9af889e61e522797", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "a127cf5cd200497c83e751f23e731663", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 0 complete, 3 remain", incompleteValue: false }]),
 0:48.86 pid:55426  removed: Some([NodeInfo { uniqueId: "dff4663f57134b52b9dc8913b23eac67", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 0 complete, 3 remain", incompleteValue: false }]),
 0:48.86 pid:55426  prev: None,
 0:48.86 pid:55426  next: None,
 0:48.86 pid:55426 }
 0:48.86 pid:55426 MutationRecord {
 0:48.86 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.86 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.86 pid:55426  added: Some([NodeInfo { uniqueId: "a92d7c0a78b5498889056fef3a591802", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 0 complete, 3 remain", incompleteValue: false }]),
 0:48.86 pid:55426  removed: Some([NodeInfo { uniqueId: "2fedba3195df444c9af889e61e522797", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 0 complete, 3 remain", incompleteValue: false }]),
 0:48.86 pid:55426  prev: None,
 0:48.86 pid:55426  next: None,
 0:48.86 pid:55426 }
 0:48.86 pid:55426 MutationRecord {
 0:48.86 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.86 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.86 pid:55426  added: Some([NodeInfo { uniqueId: "989393d516004380b95d357248cc6864", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 1 complete, 2 remain", incompleteValue: false }]),
 0:48.86 pid:55426  removed: Some([NodeInfo { uniqueId: "a92d7c0a78b5498889056fef3a591802", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 0 complete, 3 remain", incompleteValue: false }]),
 0:48.86 pid:55426  prev: None,
 0:48.86 pid:55426  next: None,
 0:48.86 pid:55426 }
 0:48.86 pid:55426 MutationRecord {
 0:48.86 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.86 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.86 pid:55426  added: Some([NodeInfo { uniqueId: "68db8eca1069445c94c358231841b748", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "a127cf5cd200497c83e751f23e731663", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 1 complete, 2 remain", incompleteValue: false }]),
 0:48.86 pid:55426  removed: Some([NodeInfo { uniqueId: "989393d516004380b95d357248cc6864", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 1 complete, 2 remain", incompleteValue: false }]),
 0:48.86 pid:55426  prev: None,
 0:48.86 pid:55426  next: None,
 0:48.86 pid:55426 }
 0:48.86 pid:55426 MutationRecord {
 0:48.86 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.86 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.87 pid:55426  added: Some([NodeInfo { uniqueId: "7dea6a9fe3124eeb9121288a5be03b72", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "a127cf5cd200497c83e751f23e731663", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 1 complete, 2 remain", incompleteValue: false }]),
 0:48.87 pid:55426  removed: Some([NodeInfo { uniqueId: "68db8eca1069445c94c358231841b748", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 1 complete, 2 remain", incompleteValue: false }]),
 0:48.87 pid:55426  prev: None,
 0:48.87 pid:55426  next: None,
 0:48.87 pid:55426 }
 0:48.87 pid:55426 MutationRecord {
 0:48.87 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.87 pid:55426  target: NodeInfo { uniqueId: "e9aa2a2d4d0b41cc9c01029372630a2f", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9d4fe44c7674fc58afa8bba09319413", nodeType: 1, namespaceURI: "", nodeName: "BODY", numChildren: 8, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.87 pid:55426  added: Some([NodeInfo { uniqueId: "4f99618b97f84e5baa47f31714240a1c", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SPAN", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "inserted_element" }, AttrInfo { namespace: "", name: "style", value: "display: none" }], isDocumentElement: false, shortValue: "", incompleteValue: false }]),
 0:48.87 pid:55426  removed: None,
 0:48.87 pid:55426  prev: Some(NodeInfo { uniqueId: "b0ee85ddec58463facd61eba1ba3ad04", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "s002" }], isDocumentElement: false, shortValue: "", incompleteValue: false }),
 0:48.87 pid:55426  next: None,
 0:48.87 pid:55426 }
 0:48.87 pid:55426 MutationRecord {
 0:48.87 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.87 pid:55426  target: NodeInfo { uniqueId: "1e9985eb5dc24cb0aae52d53b9b02320", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "P", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "n00" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.87 pid:55426  added: Some([NodeInfo { uniqueId: "9708b29cebdc47a48cfc60f733388dff", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "1e9985eb5dc24cb0aae52d53b9b02320", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "inserted_script" }], isDocumentElement: false, shortValue: "", incompleteValue: false }]),
 0:48.87 pid:55426  removed: None,
 0:48.87 pid:55426  prev: None,
 0:48.87 pid:55426  next: None,
 0:48.87 pid:55426 }
 0:48.87 pid:55426 MutationRecord {
 0:48.87 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.87 pid:55426  target: NodeInfo { uniqueId: "e9aa2a2d4d0b41cc9c01029372630a2f", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9d4fe44c7674fc58afa8bba09319413", nodeType: 1, namespaceURI: "", nodeName: "BODY", numChildren: 9, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.87 pid:55426  added: Some([NodeInfo { uniqueId: "b0e48f608abf40e4816695130ba2c8f9", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "s003" }], isDocumentElement: false, shortValue: "", incompleteValue: false }]),
 0:48.87 pid:55426  removed: None,
 0:48.87 pid:55426  prev: Some(NodeInfo { uniqueId: "4f99618b97f84e5baa47f31714240a1c", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SPAN", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "inserted_element" }, AttrInfo { namespace: "", name: "style", value: "display: none" }], isDocumentElement: false, shortValue: "", incompleteValue: false }),
 0:48.87 pid:55426  next: None,
 0:48.87 pid:55426 }
 0:48.87 pid:55426 MutationRecord {
 0:48.87 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.87 pid:55426  target: NodeInfo { uniqueId: "b0e48f608abf40e4816695130ba2c8f9", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "s003" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.87 pid:55426  added: Some([NodeInfo { uniqueId: "13f838fcca714670987393e80c6617c3", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "b0e48f608abf40e4816695130ba2c8f9", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "\n  setupTest.step(function() {\n    document_observer.disconnect();\n  });\n  if (testCounter < 2) {\n    insertionTest2.step(\n      function () {\n        assert_unreached(\"document observer did not trigger\");\n      });\n  }\n  insertionTest.done();\n  insertionTest2.done();\n", incompleteValue: false }]),
 0:48.87 pid:55426  removed: None,
 0:48.87 pid:55426  prev: None,
 0:48.88 pid:55426  next: None,
 0:48.88 pid:55426 }
 0:48.89 pid:55426 MutationRecord {
 0:48.89 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.89 pid:55426  target: NodeInfo { uniqueId: "e9aa2a2d4d0b41cc9c01029372630a2f", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9d4fe44c7674fc58afa8bba09319413", nodeType: 1, namespaceURI: "", nodeName: "BODY", numChildren: 11, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.89 pid:55426  added: None,
 0:48.89 pid:55426  removed: Some([NodeInfo { uniqueId: "e7e336cc6c4e4e54b48419917d2e0d94", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 2, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "d01" }], isDocumentElement: false, shortValue: "", incompleteValue: false }]),
 0:48.89 pid:55426  prev: Some(NodeInfo { uniqueId: "2571d7673190471098f52f135d77f73d", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "P", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "n012" }], isDocumentElement: false, shortValue: "", incompleteValue: false }),
 0:48.89 pid:55426  next: None,
 0:48.89 pid:55426 }
 0:48.89 pid:55426 MutationRecord {
 0:48.89 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.89 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.89 pid:55426  added: Some([NodeInfo { uniqueId: "52a48d3a42b844b29c77ab55cb62d366", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "a127cf5cd200497c83e751f23e731663", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 2 complete, 2 remain", incompleteValue: false }]),
 0:48.89 pid:55426  removed: Some([NodeInfo { uniqueId: "4d32d16a3adc4fc58e16a2b763815bac", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 2 complete, 2 remain", incompleteValue: false }]),
 0:48.89 pid:55426  prev: None,
 0:48.89 pid:55426  next: None,
 0:48.89 pid:55426 }
 0:48.89 pid:55426 MutationRecord {
 0:48.89 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.89 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.89 pid:55426  added: Some([NodeInfo { uniqueId: "bcdc55c0fc0f4882961ca39d4f1d3f93", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 2 complete, 2 remain", incompleteValue: false }]),
 0:48.89 pid:55426  removed: Some([NodeInfo { uniqueId: "52a48d3a42b844b29c77ab55cb62d366", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 2 complete, 2 remain", incompleteValue: false }]),
 0:48.89 pid:55426  prev: None,
 0:48.89 pid:55426  next: None,
 0:48.89 pid:55426 }
 0:48.89 pid:55426 MutationRecord {
 0:48.89 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.90 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.90 pid:55426  added: Some([NodeInfo { uniqueId: "d5c1b62d9858401db8ed70d8c3ab779f", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 3 complete, 1 remain", incompleteValue: false }]),
 0:48.90 pid:55426  removed: Some([NodeInfo { uniqueId: "bcdc55c0fc0f4882961ca39d4f1d3f93", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 2 complete, 2 remain", incompleteValue: false }]),
 0:48.90 pid:55426  prev: None,
 0:48.90 pid:55426  next: None,
 0:48.90 pid:55426 }
 0:48.90 pid:55426 MutationRecord {
 0:48.90 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.90 pid:55426  target: NodeInfo { uniqueId: "a127cf5cd200497c83e751f23e731663", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "DIV", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "log" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.90 pid:55426  added: Some([NodeInfo { uniqueId: "7c3c7078f159441b9b7616f01484b63e", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "a127cf5cd200497c83e751f23e731663", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 3 complete, 1 remain", incompleteValue: false }]),
 0:48.90 pid:55426  removed: Some([NodeInfo { uniqueId: "d5c1b62d9858401db8ed70d8c3ab779f", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "Running, 3 complete, 1 remain", incompleteValue: false }]),
 0:48.90 pid:55426  prev: None,
 0:48.90 pid:55426  next: None,
 0:48.90 pid:55426 }
 0:48.90 pid:55426 MutationRecord {
 0:48.90 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.90 pid:55426  target: NodeInfo { uniqueId: "e9aa2a2d4d0b41cc9c01029372630a2f", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9d4fe44c7674fc58afa8bba09319413", nodeType: 1, namespaceURI: "", nodeName: "BODY", numChildren: 12, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.90 pid:55426  added: Some([NodeInfo { uniqueId: "c9d0264a9f8240639f7d7bf4918df8f6", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "s012" }], isDocumentElement: false, shortValue: "", incompleteValue: false }]),
 0:48.90 pid:55426  removed: None,
 0:48.90 pid:55426  prev: Some(NodeInfo { uniqueId: "2571d7673190471098f52f135d77f73d", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "P", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "n012" }], isDocumentElement: false, shortValue: "", incompleteValue: false }),
 0:48.90 pid:55426  next: None,
 0:48.90 pid:55426 }
 0:48.90 pid:55426 MutationRecord {
 0:48.90 pid:55426  record_type: DOMString("childList", PhantomData),
 0:48.90 pid:55426  target: NodeInfo { uniqueId: "c9d0264a9f8240639f7d7bf4918df8f6", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "e9aa2a2d4d0b41cc9c01029372630a2f", nodeType: 1, namespaceURI: "", nodeName: "SCRIPT", numChildren: 1, name: "", publicId: "", systemId: "", attrs: [AttrInfo { namespace: "", name: "id", value: "s012" }], isDocumentElement: false, shortValue: "", incompleteValue: false },
 0:48.90 pid:55426  added: Some([NodeInfo { uniqueId: "351011d49f6a4008a134e552677aff22", baseURI: "http://web-platform.test:8000/dom/nodes/MutationObserver-document.html", parent: "c9d0264a9f8240639f7d7bf4918df8f6", nodeType: 3, namespaceURI: "", nodeName: "#text", numChildren: 0, name: "", publicId: "", systemId: "", attrs: [], isDocumentElement: false, shortValue: "\n  setupTest.step(function() {\n    document2_observer.disconnect();\n  });\n  if (testCounter < 2) {\n    removalTest.step(\n      function () {\n        assert_unreached(\"document observer did not trigger\");\n      });\n  }\n  removalTest.done();\n  setupTest.done();\n", incompleteValue: false }]),
 0:48.90 pid:55426  removed: None,
 0:48.90 pid:55426  prev: None,
 0:48.90 pid:55426  next: None,
 0:48.90 pid:55426 }

@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from d5fce71 to 76b7d93 Compare October 13, 2018 03:29
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #22086) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Nov 6, 2018
@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from 76b7d93 to e5cd92c Compare July 5, 2019 23:39
@KiChjang KiChjang added S-fails-tidy `./mach test-tidy` reported errors. and removed S-needs-rebase There are merge conflict errors. labels Jul 7, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #24142) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Sep 6, 2019
@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from e5cd92c to de9ac5f Compare October 9, 2019 03:34
@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from de9ac5f to 9836f3f Compare January 6, 2020 09:48

@asajeffrey asajeffrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small nit, otherwise LGTM.

)
);

// Step 9

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Step 9 of which spec?

@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from 9836f3f to c879ee0 Compare January 11, 2020 22:17
@KiChjang
KiChjang force-pushed the mutation-observer-test-fix branch from c879ee0 to bee0f5d Compare January 12, 2020 09:31
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #25547) made this pull request unmergeable. Please resolve the merge conflicts.

@KiChjang

Copy link
Copy Markdown
Contributor Author

Solved by #25515.

@KiChjang KiChjang closed this Oct 12, 2020
@KiChjang
KiChjang deleted the mutation-observer-test-fix branch October 12, 2020 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed. S-fails-tidy `./mach test-tidy` reported errors. S-needs-rebase There are merge conflict errors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate and fix remaining MutationObserver test failures

4 participants