Title: [107834] trunk/LayoutTests
- Revision
- 107834
- Author
- [email protected]
- Date
- 2012-02-15 12:30:13 -0800 (Wed, 15 Feb 2012)
Log Message
Add a test asserting that the second argument to MutationCallback is the observer
https://bugs.webkit.org/show_bug.cgi?id=78653
Reviewed by Ryosuke Niwa.
This is specified in the spec text, so I wanted to make sure it was
properly exercised in a layout test.
* fast/mutation/callback-second-argument-expected.txt: Added.
* fast/mutation/callback-second-argument.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (107833 => 107834)
--- trunk/LayoutTests/ChangeLog 2012-02-15 20:26:40 UTC (rev 107833)
+++ trunk/LayoutTests/ChangeLog 2012-02-15 20:30:13 UTC (rev 107834)
@@ -1,3 +1,16 @@
+2012-02-15 Adam Klein <[email protected]>
+
+ Add a test asserting that the second argument to MutationCallback is the observer
+ https://bugs.webkit.org/show_bug.cgi?id=78653
+
+ Reviewed by Ryosuke Niwa.
+
+ This is specified in the spec text, so I wanted to make sure it was
+ properly exercised in a layout test.
+
+ * fast/mutation/callback-second-argument-expected.txt: Added.
+ * fast/mutation/callback-second-argument.html: Added.
+
2012-02-15 Ojan Vafai <[email protected]>
getComputedStyle of flex-item-align:auto should resolve to it's parent's flex-align value
Added: trunk/LayoutTests/fast/mutation/callback-second-argument-expected.txt (0 => 107834)
--- trunk/LayoutTests/fast/mutation/callback-second-argument-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/mutation/callback-second-argument-expected.txt 2012-02-15 20:30:13 UTC (rev 107834)
@@ -0,0 +1 @@
+PASSED: Second argument is mutationObserver
Added: trunk/LayoutTests/fast/mutation/callback-second-argument.html (0 => 107834)
--- trunk/LayoutTests/fast/mutation/callback-second-argument.html (rev 0)
+++ trunk/LayoutTests/fast/mutation/callback-second-argument.html 2012-02-15 20:30:13 UTC (rev 107834)
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<body>
+<script>
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+}
+
+function mutationCallback(mutations, observer) {
+ mutations[0].addedNodes[0].textContent = (observer === mutationObserver)
+ ? 'PASSED: Second argument is mutationObserver'
+ : 'FAILED: Second argument is not mutationObserver';
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+}
+var mutationObserver = new WebKitMutationObserver(mutationCallback);
+mutationObserver.observe(document.body, {childList: true});
+document.body.appendChild(document.createTextNode('FAILED'));
+</script>
+</body>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes