Layout Test fast/events/shadow-event-path[-2].html is failing
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Apr 2014 20:01:36 +0000 (20:01 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Apr 2014 20:01:36 +0000 (20:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=132238

Add the file that was supposed to be committed in r167840.

* TestExpectations:
* fast/events/resources/shadow-event-path-shared.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167900 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/fast/events/resources/shadow-event-path-shared.js [new file with mode: 0644]

index 60b584ca8db8ebe8686d91ef673f5d2351ed08f7..a55c50bf7a828f4770db3db3c4dc144110ef0688 100644 (file)
@@ -1,3 +1,13 @@
+2014-04-28  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Layout Test fast/events/shadow-event-path[-2].html is failing
+        https://bugs.webkit.org/show_bug.cgi?id=132238
+
+        Add the file that was supposed to be committed in r167840.
+
+        * TestExpectations:
+        * fast/events/resources/shadow-event-path-shared.js: Added.
+
 2014-04-28  Tim Horton  <timothy_horton@apple.com>
 
         REGRESSION (r167845): ASSERT(!m_renderView.needsLayout()) in svg/custom/bug79798.html
index a502f44d9e81d9aa29030173cb5c075c42bd4219..0f3a1c7ffe8463d8d160faf7aed2f8d394139420 100644 (file)
@@ -107,5 +107,3 @@ webkit.org/b/131318 http/tests/inspector/replay/document-last-modified-fallback-
 # Expando properties on attribute nodes disappear
 webkit.org/b/88045 fast/dom/gc-attribute-node.html [ Failure Pass ]
 
-webkit.org/b/132238 fast/events/shadow-event-path.html [ Failure ]
-webkit.org/b/132238 fast/events/shadow-event-path-2.html [ Failure ]
diff --git a/LayoutTests/fast/events/resources/shadow-event-path-shared.js b/LayoutTests/fast/events/resources/shadow-event-path-shared.js
new file mode 100644 (file)
index 0000000..7d2748f
--- /dev/null
@@ -0,0 +1,45 @@
+if (window.testRunner)
+    testRunner.dumpAsText();
+
+function log(message) {
+    var log = document.getElementById('log');
+    if (!log) {
+        log = document.createElement('pre');
+        log.id = 'log';
+        document.body.appendChild(log);
+    }
+    log.textContent += message + '\n';
+}
+
+function targetIdentifier(target) {
+    if (target === undefined || target === null)
+        return target;
+    if (target === window)
+        return 'window';
+    if (target === document)
+        return 'document';
+    return target.localName + (target.id ? '#' + target.id : '');
+}
+
+function attachListeners(eventname) {
+    var targets = Array.prototype.slice.call(document.querySelectorAll('*'));
+    targets.push(window);
+    targets.push(document);
+    targets.forEach(function (target) {
+        target.addEventListener(eventname, function (event) {
+            log(eventname + '@' + targetIdentifier(target) + '\n'
+                + '    target:' + targetIdentifier(event.target) + '\n'
+                + '    relatedTarget:' + targetIdentifier(event.relatedTarget) + '\n');
+        });
+    });
+}
+
+
+attachListeners('mousemove');
+attachListeners('mousedown');
+attachListeners('mouseover');
+attachListeners('mouseout');
+attachListeners('mouseenter');
+attachListeners('mouseleave');
+attachListeners('mouseup');
+attachListeners('click');