<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[196989] trunk/LayoutTests</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/196989">196989</a></dd>
<dt>Author</dt> <dd>dino@apple.com</dd>
<dt>Date</dt> <dd>2016-02-23 12:38:37 -0800 (Tue, 23 Feb 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add tests for fast click change in <a href="http://trac.webkit.org/projects/webkit/changeset/196679">r196679</a>
https://bugs.webkit.org/show_bug.cgi?id=154568
<rdar://problem/24782479>
Reviewed by Myles Maxfield.
Bug http://webkit.org/b/154318 made some changes to the fast
click behaviour, but didn't include any tests. Here they are!
* fast/events/ios/fast-click-double-tap-sends-click-expected.txt: Added.
* fast/events/ios/fast-click-double-tap-sends-click.html: Checks that a double tap on a clickable element sends a click.
* fast/events/ios/fast-click-double-tap-zooms-on-image-expected.txt: Added.
* fast/events/ios/fast-click-double-tap-zooms-on-image.html: Checks that a double tap on an image can trigger a zoom if there
isn't anything else listening.
* fast/events/ios/fast-click-double-tap-zooms-on-text-expected.txt: Added.
* fast/events/ios/fast-click-double-tap-zooms-on-text.html: Checks that a double tap on a block of text can trigger a zoom
if there isn't anything else listening.
* fast/events/ios/no-fast-click-double-tap-causes-zoom-expected.txt: Added.
* fast/events/ios/no-fast-click-double-tap-causes-zoom.html: When we are not in fast click mode, a double tap should
trigger a zoom. This is checking the inverse behaviour to fast-click-double-tap-sends-click.
* fast/events/ios/viewport-device-width-allows-double-tap-zoom-out.html: Removed some code that could never be called.
* fast/events/ios/viewport-zooms-from-element-to-initial-scale.html: Ditto.
* platform/ios-simulator/TestExpectations: Add the new tests.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosviewportdevicewidthallowsdoubletapzoomouthtml">trunk/LayoutTests/fast/events/ios/viewport-device-width-allows-double-tap-zoom-out.html</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosviewportzoomsfromelementtoinitialscalehtml">trunk/LayoutTests/fast/events/ios/viewport-zooms-from-element-to-initial-scale.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorTestExpectations">trunk/LayoutTests/platform/ios-simulator/TestExpectations</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfasteventsiosfastclickdoubletapsendsclickexpectedtxt">trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosfastclickdoubletapsendsclickhtml">trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click.html</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosfastclickdoubletapzoomsonimageexpectedtxt">trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosfastclickdoubletapzoomsonimagehtml">trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image.html</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosfastclickdoubletapzoomsontextexpectedtxt">trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosfastclickdoubletapzoomsontexthtml">trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text.html</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosnofastclickdoubletapcauseszoomexpectedtxt">trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventsiosnofastclickdoubletapcauseszoomhtml">trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (196988 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-02-23 20:09:07 UTC (rev 196988)
+++ trunk/LayoutTests/ChangeLog        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -1,3 +1,29 @@
</span><ins>+2016-02-22 Dean Jackson <dino@apple.com>
+
+ Add tests for fast click change in r196679
+ https://bugs.webkit.org/show_bug.cgi?id=154568
+ <rdar://problem/24782479>
+
+ Reviewed by Myles Maxfield.
+
+ Bug http://webkit.org/b/154318 made some changes to the fast
+ click behaviour, but didn't include any tests. Here they are!
+
+ * fast/events/ios/fast-click-double-tap-sends-click-expected.txt: Added.
+ * fast/events/ios/fast-click-double-tap-sends-click.html: Checks that a double tap on a clickable element sends a click.
+ * fast/events/ios/fast-click-double-tap-zooms-on-image-expected.txt: Added.
+ * fast/events/ios/fast-click-double-tap-zooms-on-image.html: Checks that a double tap on an image can trigger a zoom if there
+ isn't anything else listening.
+ * fast/events/ios/fast-click-double-tap-zooms-on-text-expected.txt: Added.
+ * fast/events/ios/fast-click-double-tap-zooms-on-text.html: Checks that a double tap on a block of text can trigger a zoom
+ if there isn't anything else listening.
+ * fast/events/ios/no-fast-click-double-tap-causes-zoom-expected.txt: Added.
+ * fast/events/ios/no-fast-click-double-tap-causes-zoom.html: When we are not in fast click mode, a double tap should
+ trigger a zoom. This is checking the inverse behaviour to fast-click-double-tap-sends-click.
+ * fast/events/ios/viewport-device-width-allows-double-tap-zoom-out.html: Removed some code that could never be called.
+ * fast/events/ios/viewport-zooms-from-element-to-initial-scale.html: Ditto.
+ * platform/ios-simulator/TestExpectations: Add the new tests.
+
</ins><span class="cx"> 2016-02-23 Alexey Proskuryakov <ap@apple.com>
</span><span class="cx">
</span><span class="cx"> REGRESSION (r192251): http/tests/navigation/page-cache-xhr.html is flaky
</span></span></pre></div>
<a id="trunkLayoutTestsfasteventsiosfastclickdoubletapsendsclickexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click-expected.txt (0 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click-expected.txt        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+PASS: Click fired on element with handler.
+This document is set up to enable fast clicks. Double tapping on the rectangle above should send a click event, not trigger a zoom.
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfasteventsiosfastclickdoubletapsendsclickhtmlfromrev196988trunkLayoutTestsfasteventsiosviewportdevicewidthallowsdoubletapzoomouthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click.html (from rev 196988, trunk/LayoutTests/fast/events/ios/viewport-device-width-allows-double-tap-zoom-out.html) (0 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click.html         (rev 0)
+++ trunk/LayoutTests/fast/events/ios/fast-click-double-tap-sends-click.html        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -0,0 +1,61 @@
</span><ins>+<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
+
+<html>
+<meta name="viewport" content="initial-scale=1.0, width=device-width">
+<head>
+ <script id="ui-script" type="text/plain">
+ (function() {
+ uiController.singleTapAtPoint(50, 50, function() {});
+ uiController.singleTapAtPoint(50, 50, function() {
+ uiController.uiScriptComplete();
+ });
+ })();
+ </script>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ var target;
+
+ function getUIScript()
+ {
+ return document.getElementById("ui-script").text;
+ }
+
+ function runTest()
+ {
+ target = document.getElementById("target");
+ target.addEventListener("click", handleClick, false);
+
+ if (!window.eventSender || !testRunner.runUIScript)
+ return;
+
+ testRunner.runUIScript(getUIScript(), function() {});
+ }
+
+ function handleClick(event)
+ {
+ target.textContent = "PASS: Click fired on element with handler.";
+ testRunner.notifyDone();
+ }
+ </script>
+ <style>
+ body {
+ margin: 0;
+ }
+ #target {
+ height: 100px;
+ width: 100px;
+ background-color: silver;
+ }
+ </style>
+</head>
+<body onload="runTest()">
+<div id="target"></div>
+<div id="description">This document is set up to enable fast clicks. Double
+tapping on the rectangle above should send a click event, not trigger a
+zoom.</div>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsfasteventsiosfastclickdoubletapzoomsonimageexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image-expected.txt (0 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image-expected.txt        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS: Double tap caused zoom.
+This document is set up to enable fast clicks. However, since the green image doesn't have any handlers, double tapping on it should trigger a zoom, not a fast click.
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfasteventsiosfastclickdoubletapzoomsonimagehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image.html (0 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image.html         (rev 0)
+++ trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image.html        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -0,0 +1,67 @@
</span><ins>+<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
+
+<html>
+<meta name="viewport" content="width=600">
+<head>
+ <script id="ui-script" type="text/plain">
+ (function() {
+ uiController.didEndZoomingCallback = function() {
+ uiController.uiScriptComplete();
+ };
+ uiController.singleTapAtPoint(80, 80, function() {});
+ uiController.singleTapAtPoint(80, 80, function() {});
+ })();
+ </script>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ var target, output;
+
+ function getUIScript()
+ {
+ return document.getElementById("ui-script").text;
+ }
+
+ function runTest()
+ {
+ output = document.getElementById("output");
+ target = document.getElementById("target");
+ target.addEventListener("click", handleClick, false);
+
+ if (!window.eventSender || !testRunner.runUIScript)
+ return;
+
+ testRunner.runUIScript(getUIScript(), function() {
+ output.textContent = "PASS: Double tap caused zoom.";
+ testRunner.notifyDone();
+ });
+ }
+
+ function handleClick(event)
+ {
+ output.textContent = "PASS: Click fired on element with handler.";
+ testRunner.notifyDone();
+ }
+ </script>
+ <style>
+ body {
+ margin: 0;
+ width: 300px;
+ }
+ #target {
+ height: 200px;
+ width: 200px;
+ }
+ </style>
+</head>
+<body onload="runTest()">
+<img id="target" src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'><rect width='1' height='1' fill='green'/><circle cx='0.5' cy='0.5' r='0.5' fill='blue'/></svg>"><br>
+<div id="output"></div>
+<div id="description">This document is set up to enable fast clicks. However, since
+the green image doesn't have any handlers, double tapping on it
+should trigger a zoom, not a fast click.</div>
+</body>
+</html>
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-image.html
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfasteventsiosfastclickdoubletapzoomsontextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text-expected.txt (0 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text-expected.txt        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+PASS: Double tap caused zoom.
+This document is set up to enable fast clicks. Double tapping on the rectangle would send a click event, not trigger a zoom. But double tapping on this text content should zoom.
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l
abore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco labori
s nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfasteventsiosfastclickdoubletapzoomsontexthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text.html (0 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text.html         (rev 0)
+++ trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text.html        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -0,0 +1,99 @@
</span><ins>+<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
+
+<html>
+<meta name="viewport" content="width=600">
+<head>
+ <script id="ui-script" type="text/plain">
+ (function() {
+ uiController.didEndZoomingCallback = function() {
+ uiController.uiScriptComplete();
+ };
+ uiController.singleTapAtPoint(50, 120, function() {});
+ uiController.singleTapAtPoint(50, 120, function() {});
+ })();
+ </script>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ var target;
+
+ function getUIScript()
+ {
+ return document.getElementById("ui-script").text;
+ }
+
+ function runTest()
+ {
+ target = document.getElementById("target");
+ target.addEventListener("click", handleClick, false);
+ var description = document.getElementById("description");
+ description.addEventListener("click", handleClick, false);
+
+ if (!window.eventSender || !testRunner.runUIScript)
+ return;
+
+ testRunner.runUIScript(getUIScript(), function() {
+ target.textContent = "PASS: Double tap caused zoom.";
+ testRunner.notifyDone();
+ });
+ }
+
+ function handleClick(event)
+ {
+ target.textContent = "PASS: Click fired on element with handler.";
+ testRunner.notifyDone();
+ }
+ </script>
+ <style>
+ body {
+ margin: 0;
+ width: 300px;
+ }
+ #target {
+ height: 100px;
+ width: 100px;
+ background-color: silver;
+ }
+ </style>
+</head>
+<body onload="runTest()">
+<div id="target"></div>
+<div id="description">This document is set up to enable fast clicks. Double
+tapping on the rectangle would send a click event, not trigger a
+zoom. But double tapping on this text content should zoom.<br>
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
+incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
+nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
+fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
+culpa qui officia deserunt mollit anim id est laborum.
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
+incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
+nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
+fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
+culpa qui officia deserunt mollit anim id est laborum.
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
+incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
+nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
+fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
+culpa qui officia deserunt mollit anim id est laborum.
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
+incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
+nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
+fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
+culpa qui officia deserunt mollit anim id est laborum.
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
+incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
+nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
+fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
+culpa qui officia deserunt mollit anim id est laborum.
+</div>
+</body>
+</html>
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/events/ios/fast-click-double-tap-zooms-on-text.html
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfasteventsiosnofastclickdoubletapcauseszoomexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom-expected.txt (0 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom-expected.txt        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+PASS: Double tap caused zoom.
+This document is set up to disable fast clicks. Double tapping on the rectangle above should zoom, not send a click event.
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfasteventsiosnofastclickdoubletapcauseszoomhtmlfromrev196988trunkLayoutTestsfasteventsiosviewportdevicewidthallowsdoubletapzoomouthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom.html (from rev 196988, trunk/LayoutTests/fast/events/ios/viewport-device-width-allows-double-tap-zoom-out.html) (0 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom.html         (rev 0)
+++ trunk/LayoutTests/fast/events/ios/no-fast-click-double-tap-causes-zoom.html        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -0,0 +1,64 @@
</span><ins>+<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
+
+<html>
+<meta name="viewport" content="initial-scale=1.0">
+<head>
+ <script id="ui-script" type="text/plain">
+ (function() {
+ uiController.didEndZoomingCallback = function() {
+ uiController.uiScriptComplete();
+ };
+ uiController.singleTapAtPoint(50, 50, function() {});
+ uiController.singleTapAtPoint(50, 50, function() {});
+ })();
+ </script>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ var target;
+
+ function getUIScript()
+ {
+ return document.getElementById("ui-script").text;
+ }
+
+ function runTest()
+ {
+ target = document.getElementById("target");
+ target.addEventListener("click", handleClick, false);
+
+ if (!window.eventSender || !testRunner.runUIScript)
+ return;
+
+ testRunner.runUIScript(getUIScript(), function() {
+ target.textContent = "PASS: Double tap caused zoom.";
+ testRunner.notifyDone();
+ });
+ }
+
+ function handleClick(event)
+ {
+ target.textContent = "FAIL: Click fired on element with handler.";
+ testRunner.notifyDone();
+ }
+ </script>
+ <style>
+ body {
+ margin: 0;
+ }
+ #target {
+ height: 100px;
+ width: 100px;
+ background-color: silver;
+ }
+ </style>
+</head>
+<body onload="runTest()">
+<div id="target"></div>
+<div id="description">This document is set up to disable fast clicks. Double
+tapping on the rectangle above should zoom, not send a click event.</div>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsfasteventsiosviewportdevicewidthallowsdoubletapzoomouthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/events/ios/viewport-device-width-allows-double-tap-zoom-out.html (196988 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/viewport-device-width-allows-double-tap-zoom-out.html        2016-02-23 20:09:07 UTC (rev 196988)
+++ trunk/LayoutTests/fast/events/ios/viewport-device-width-allows-double-tap-zoom-out.html        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -33,12 +33,6 @@
</span><span class="cx"> testRunner.notifyDone();
</span><span class="cx"> });
</span><span class="cx"> }
</span><del>-
- function handleClick()
- {
- document.getElementById("target").innerText = "FAIL: Click fired when we should only be zooming.";
- testRunner.notifyDone();
- }
</del><span class="cx"> </script>
</span><span class="cx"> <style>
</span><span class="cx"> body {
</span></span></pre></div>
<a id="trunkLayoutTestsfasteventsiosviewportzoomsfromelementtoinitialscalehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/events/ios/viewport-zooms-from-element-to-initial-scale.html (196988 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/ios/viewport-zooms-from-element-to-initial-scale.html        2016-02-23 20:09:07 UTC (rev 196988)
+++ trunk/LayoutTests/fast/events/ios/viewport-zooms-from-element-to-initial-scale.html        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -33,12 +33,6 @@
</span><span class="cx"> testRunner.notifyDone();
</span><span class="cx"> });
</span><span class="cx"> }
</span><del>-
- function handleClick()
- {
- document.getElementById("target").innerText = "FAIL: Click fired when we should only be zooming.";
- testRunner.notifyDone();
- }
</del><span class="cx"> </script>
</span><span class="cx"> <style>
</span><span class="cx"> body {
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator/TestExpectations (196988 => 196989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/TestExpectations        2016-02-23 20:09:07 UTC (rev 196988)
+++ trunk/LayoutTests/platform/ios-simulator/TestExpectations        2016-02-23 20:38:37 UTC (rev 196989)
</span><span class="lines">@@ -2839,6 +2839,10 @@
</span><span class="cx"> webkit.org/b/152134 fast/events/ios/unscalable-viewport-clicks-on-doubletap.html [ Pass Timeout ]
</span><span class="cx"> webkit.org/b/152134 fast/events/ios/viewport-device-width-at-initial-scale-fast-clicks.html [ Pass Timeout ]
</span><span class="cx"> webkit.org/b/152134 fast/events/ios/viewport-no-width-value-allows-double-tap.html [ Pass Timeout ]
</span><ins>+webkit.org/b/152134 fast/events/ios/fast-click-double-tap-sends-click.html [ Pass Timeout ]
+webkit.org/b/152134 fast/events/ios/fast-click-double-tap-zooms-on-text.html [ Pass Timeout ]
+webkit.org/b/152134 fast/events/ios/fast-click-double-tap-zooms-on-image.html [ Pass Timeout ]
+webkit.org/b/152134 fast/events/ios/no-fast-click-double-tap-causes-zoom.html [ Pass Timeout ]
</ins><span class="cx">
</span><span class="cx"> # Failing tests related to picture element
</span><span class="cx"> webkit.org/b/152141 fast/picture/image-picture-1x.html [ Skip ]
</span></span></pre>
</div>
</div>
</body>
</html>