Fix Long Press Image Test
authormegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Apr 2019 03:57:42 +0000 (03:57 +0000)
committermegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Apr 2019 03:57:42 +0000 (03:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=197130
<rdar://problem/50058818>

Reviewed by Wenson Hsieh.

Fixing up test to reflect changes in https://bugs.webkit.org/show_bug.cgi?id=196833

* fast/events/touch/ios/long-press-on-image-expected.txt:
* fast/events/touch/ios/long-press-on-image.html:

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

LayoutTests/ChangeLog
LayoutTests/fast/events/touch/ios/long-press-on-image-expected.txt
LayoutTests/fast/events/touch/ios/long-press-on-image.html

index 225c576..1281907 100644 (file)
@@ -1,3 +1,16 @@
+2019-04-19  Megan Gardner  <megan_gardner@apple.com>
+
+        Fix Long Press Image Test
+        https://bugs.webkit.org/show_bug.cgi?id=197130
+        <rdar://problem/50058818>
+
+        Reviewed by Wenson Hsieh.
+
+        Fixing up test to reflect changes in https://bugs.webkit.org/show_bug.cgi?id=196833
+
+        * fast/events/touch/ios/long-press-on-image-expected.txt:
+        * fast/events/touch/ios/long-press-on-image.html:
+
 2019-04-19  John Wilander  <wilander@apple.com>
 
         Disable Ad Click Attribution in ephemeral sessions and make sure conversion requests use an ephemeral, stateless session
index d4fdf4f..c88708c 100644 (file)
@@ -1,4 +1,5 @@
 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
+<meta charset="utf-8">
 
 <html>
 <head>
                     var actionDictionary = JSON.parse(result);
                     var actionStrings = actionDictionary.actionSheet;
                     var output = '';
-                    if (actionStrings[0] == 'Save Image' && actionStrings[1] == 'Copy' && actionStrings[2] == 'Cancel') {
+                    if (actionStrings[0] == 'Share…' && actionStrings[1] == 'Add to Photos' && actionStrings[2] == 'Copy' && actionStrings[3] == 'Cancel') {
                         output += 'Available Actions: <br>';
                         output +=  actionStrings.join('<br>');
                         output += '<br>';
                         output += 'PASS';
                     }
-                    else
-                        output = 'FAIL'
+                    else {
+                        output += 'Available Actions: <br>';
+                        output += actionStrings.join('<br>');
+                        output += '<br>';
+                        output += 'FAIL'
+                    }
 
                     document.getElementById('target').innerHTML = output;
                     testRunner.notifyDone();