Null dereference loading Blink layout test editing/selection/selectstart-event-crash...
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Jan 2016 20:16:50 +0000 (20:16 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Jan 2016 20:16:50 +0000 (20:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150210
<rdar://problem/23137259>

Reviewed by Brent Fulgham.

* imported/blink/editing/selection/selectstart-event-crash-expected.txt: Added.
* imported/blink/editing/selection/selectstart-event-crash.html: Added.
* platform/ios-simulator-wk2/TestExpectations:

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

LayoutTests/ChangeLog
LayoutTests/imported/blink/editing/selection/selectstart-event-crash-expected.txt [new file with mode: 0644]
LayoutTests/imported/blink/editing/selection/selectstart-event-crash.html [new file with mode: 0644]
LayoutTests/platform/ios-simulator-wk2/TestExpectations

index 2ce3bdb..8079d1d 100644 (file)
@@ -1,5 +1,17 @@
 2016-01-12  Jiewen Tan  <jiewen_tan@apple.com>
 
+        Null dereference loading Blink layout test editing/selection/selectstart-event-crash.html
+        https://bugs.webkit.org/show_bug.cgi?id=150210
+        <rdar://problem/23137259>
+
+        Reviewed by Brent Fulgham.
+
+        * imported/blink/editing/selection/selectstart-event-crash-expected.txt: Added.
+        * imported/blink/editing/selection/selectstart-event-crash.html: Added.
+        * platform/ios-simulator-wk2/TestExpectations:
+
+2016-01-12  Jiewen Tan  <jiewen_tan@apple.com>
+
         Null dereference loading Blink layout test editing/apply-inline-style-to-element-with-no-renderer-crash.html
         https://bugs.webkit.org/show_bug.cgi?id=149287
         <rdar://problem/22746217>
diff --git a/LayoutTests/imported/blink/editing/selection/selectstart-event-crash-expected.txt b/LayoutTests/imported/blink/editing/selection/selectstart-event-crash-expected.txt
new file mode 100644 (file)
index 0000000..c2c15e0
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Untitled 
+
diff --git a/LayoutTests/imported/blink/editing/selection/selectstart-event-crash.html b/LayoutTests/imported/blink/editing/selection/selectstart-event-crash.html
new file mode 100644 (file)
index 0000000..253f87f
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<div id="sample"><table id="one"><caption></caption></table></div>
+<div id="log"></div>
+<script>
+var one = document.querySelector('#one');
+document.addEventListener('selectstart', function() {
+    one.remove();
+});
+test(function() {
+    if (!window.eventSender)
+        return;
+    eventSender.mouseMoveTo(one.offsetLeft, one.offsetTop);
+    eventSender.mouseDown();
+    var selection = getSelection();
+    assert_equals(selection.rangeCount, 1);
+});
+</script>
index 999f94f..2ffdd54 100644 (file)
@@ -2038,6 +2038,7 @@ webkit.org/b/123431 http/tests/css/link-css-disabled-value-with-slow-loading-she
 
 # eventSender.mouseDown is not implemented
 fast/loader/location-hash-user-gesture.html [ Skip ]
+imported/blink/editing/selection/selectstart-event-crash.html [ Skip ]
 
 # No touch events
 http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always.html [ Skip ]