<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>37830</bug_id>
          
          <creation_ts>2010-04-19 16:04:35 -0700</creation_ts>
          <short_desc>send-oncancel-event touch test should use js-test-post-function.js</short_desc>
          <delta_ts>2010-09-02 17:01:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Android</rep_platform>
          <op_sys>Android</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>38084</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Murdoch">benm</reporter>
          <assigned_to name="Ben Murdoch">benm</assigned_to>
          <cc>android-webkit-unforking</cc>
    
    <cc>commit-queue</cc>
    
    <cc>gdk</cc>
    
    <cc>hausmann</cc>
    
    <cc>jamesr</cc>
    
    <cc>kim.1.gronholm</cc>
    
    <cc>yuzo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>214303</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2010-04-19 16:04:35 -0700</bug_when>
    <thetext>When the touch layout tests were moved in http://trac.webkit.org/changeset/54253 send-oncancel-event was changed to not use js-test-post-function.js erroneously. This meant that the test threw an error as it used the isSuccessfullyParsed function. This failure was avoided in http://trac.webkit.org/changeset/55735 which removed the reference to isSuccessfullyParsed. Due to the asynchronous nature of touch events on Android, we need to use js-test-post-function to run an asynchronous test.

Patch to follow to reinsert the call to isSuccesfullyParsed and make the test use js-test-post-function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214333</commentid>
    <comment_count>1</comment_count>
      <attachid>53737</attachid>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2010-04-19 16:42:17 -0700</bug_when>
    <thetext>Created attachment 53737
Patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215596</commentid>
    <comment_count>2</comment_count>
      <attachid>53737</attachid>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-04-21 18:08:13 -0700</bug_when>
    <thetext>Comment on attachment 53737
Patch.

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215708</commentid>
    <comment_count>3</comment_count>
      <attachid>53737</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-21 23:02:14 -0700</bug_when>
    <thetext>Comment on attachment 53737
Patch.

Clearing flags on attachment: 53737

Committed r58058: &lt;http://trac.webkit.org/changeset/58058&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215709</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-21 23:02:19 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216149</commentid>
    <comment_count>5</comment_count>
      <attachid>54107</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2010-04-22 16:34:18 -0700</bug_when>
    <thetext>Created attachment 54107
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216150</commentid>
    <comment_count>6</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2010-04-22 16:36:13 -0700</bug_when>
    <thetext>Hey guys.  The first patch broke Chromium because in Chromium the touch stuff is not deferred and so the entire test body was running before hitting the end of send-oncancel-events.js.  This means that js-test-post-function.js was not getting parsed, so isSuccessfullyParsed was not being defined, and the &apos;var successfullyParsed = true&apos; line was not able to run.  This patch moves the test body to the onload event which should work fine on all platforms.  I don&apos;t have any way to verify this on Android.  Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216157</commentid>
    <comment_count>7</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2010-04-22 16:51:51 -0700</bug_when>
    <thetext>Ah, I see. Sorry about that. Alternatively, we could set isSuccessfullyParsed right before calling layoutTestController.notifyDone, like in:

http://trac.webkit.org/browser/trunk/LayoutTests/fast/events/touch/script-tests/basic-single-touch-events.js#L23 ?

Thanks, Ben</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216164</commentid>
    <comment_count>8</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2010-04-22 16:59:58 -0700</bug_when>
    <thetext>Sorry, for that to work we&apos;d also need to move the js-test-post-function link inside the send-oncancel-event.html file to above the link to the test sctipt, like it&apos;s done in basic-single-touch-events.html.

What do you think? It would be nice to maintain consistency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216166</commentid>
    <comment_count>9</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2010-04-22 17:02:58 -0700</bug_when>
    <thetext>I really dislike the pattern in basic-single-touch-events.js to be honest.  It&apos;s too easy to add code below the touchTargets() call that runs on some platforms (that do touch events synchronously) and does not run on others (which do touch events asynchronously).  To be consistent we should make sure that all platforms have a chance to evaluate the same javascript and then run the test.  The simplest way to do that is to just put the actual test body in the onload handler or later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216180</commentid>
    <comment_count>10</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2010-04-22 17:31:00 -0700</bug_when>
    <thetext>I can confirm that the window.onload approach works on Android.

Looking through the current touch tests and the TEMPLATE.html for those tests, there seems to be some tidying up needed. I think that future tests should make use of TEMPLATE.html (which incidentally also needs fixing as it was a copy from another directory where asynchronous tests were not needed) rather than relying on remembering to run the test code inside window.onload. We can make TEMPLATE.html link to the scripts in the correct order. I don&apos;t mind doing this if you&apos;d like to submit this now as-is.

Cheers, Ben</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216208</commentid>
    <comment_count>11</comment_count>
    <who name="Yuzo Fujishima">yuzo</who>
    <bug_when>2010-04-22 18:34:11 -0700</bug_when>
    <thetext>*** Bug 38020 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216209</commentid>
    <comment_count>12</comment_count>
    <who name="Yuzo Fujishima">yuzo</who>
    <bug_when>2010-04-22 18:35:51 -0700</bug_when>
    <thetext>Changed LayoutTests/platform/chromium/test_expectations.txt to mark the test failing.

Please change it again once the patch is landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220626</commentid>
    <comment_count>13</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2010-05-04 09:06:04 -0700</bug_when>
    <thetext>With the resolution of https://bugs.webkit.org/show_bug.cgi?id=38084 I think this should now be fixed for Chromium. James, would you mind syncing past r58644 to verify?

Thanks, Ben</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237403</commentid>
    <comment_count>14</comment_count>
      <attachid>54107</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-06-12 18:52:29 -0700</bug_when>
    <thetext>Comment on attachment 54107
Patch

Looks OK. r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273675</commentid>
    <comment_count>15</comment_count>
      <attachid>54107</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-02 17:01:52 -0700</bug_when>
    <thetext>Comment on attachment 54107
Patch

Clearing flags on attachment: 54107

Committed r66695: &lt;http://trac.webkit.org/changeset/66695&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273676</commentid>
    <comment_count>16</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-02 17:01:59 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>53737</attachid>
            <date>2010-04-19 16:42:17 -0700</date>
            <delta_ts>2010-04-22 16:34:14 -0700</delta_ts>
            <desc>Patch.</desc>
            <filename>37830-patch.txt</filename>
            <type>text/plain</type>
            <size>2058</size>
            <attacher name="Ben Murdoch">benm</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDU3ODUxKQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTggQEAKKzIwMTAtMDQtMTkgIEJlbiBNdXJkb2NoICA8YmVu
bUBnb29nbGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIHNlbmQtb25jYW5jZWwtZXZlbnQgdG91Y2ggdGVzdCBzaG91bGQgdXNlIGpzLXRlc3Qt
cG9zdC1mdW5jdGlvbi5qcworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1
Zy5jZ2k/aWQ9Mzc4MzAKKworICAgICAgICBSZXN0b3JlIHJlZmVyZW5jZSB0byBqcy10ZXN0LXBv
c3QtZnVuY3Rpb24gcmVtb3ZlZCBlcnJvbmVvdXNseSBpbiBjb3B5IAorICAgICAgICB3aGVuIHRo
aXMgdGVzdCB3YXMgbW92ZSBpbiBodHRwOi8vdHJhYy53ZWJraXQub3JnL2NoYW5nZXNldC81NDI1
MworICAgICAgICBhbmQgdGhlIGNvcnJlc3BvbmRpbmcgY2FsbCB0byB0aGUgaXNTdWNjZXNzZnVs
bHlQYXJzZWQgZnVuY3Rpb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anMtdGVzdC1wb3N0LWZ1bmN0aW9uLmpzIj48L3Nj
cmlwdD4KIDwvYm9keT4KIDwvaHRtbD4KSW5kZXg6IExheW91dFRlc3RzL2Zhc3QvZXZlbnRzL3Rv
dWNoL3NjcmlwdC10ZXN0cy9zZW5kLW9uY2FuY2VsLWV2ZW50LmpzCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIExh
eW91dFRlc3RzL2Zhc3QvZXZlbnRzL3RvdWNoL3NjcmlwdC10ZXN0cy9zZW5kLW9uY2FuY2VsLWV2
ZW50LmpzCShyZXZpc2lvbiA1NzgxNCkKKysrIExheW91dFRlc3RzL2Zhc3QvZXZlbnRzL3RvdWNo
L3NjcmlwdC10ZXN0cy9zZW5kLW9uY2FuY2VsLWV2ZW50LmpzCSh3b3JraW5nIGNvcHkpCkBAIC0x
Myw2ICsxMyw3IEBAIGZ1bmN0aW9uIHRvdWNoY2FuY2VsSGFuZGxlcigpIHsKICAgICBzaG91bGRC
ZSgiY2FuY2VsRXZlbnQucGFnZVkiLCB0b3VjaFkudG9TdHJpbmcoKSk7CiAgICAgaWYgKHdpbmRv
dy5sYXlvdXRUZXN0Q29udHJvbGxlcikgewogICAgICAgICBsYXlvdXRUZXN0Q29udHJvbGxlci5u
b3RpZnlEb25lKCk7CisgICAgICAgIGlzU3VjY2Vzc2Z1bGx5UGFyc2VkKCk7IAogICAgIH0KIH0K
ICAgICAK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>54107</attachid>
            <date>2010-04-22 16:34:18 -0700</date>
            <delta_ts>2010-09-02 17:01:52 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-37830-20100422163417.patch</filename>
            <type>text/plain</type>
            <size>1840</size>
            <attacher name="James Robinson">jamesr</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZU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