[webkit-changes] cvs commit: LayoutTests/fast/events stopPropagation-checkbox-expected.txt stopPropagation-checkbox.html stopPropagation-submit-expected.txt stopPropagation-submit.html

Maciej mjs at opensource.apple.com
Mon Oct 3 21:08:05 PDT 2005


mjs         05/10/03 21:08:04

  Modified:    .        ChangeLog
  Added:       fast/events stopPropagation-checkbox-expected.txt
                        stopPropagation-checkbox.html
                        stopPropagation-submit-expected.txt
                        stopPropagation-submit.html
  Log:
          Reviewed by Darin.
  
  	Test cases for:
  
  	http://bugzilla.opendarwin.org/show_bug.cgi?id=5180
  	event.stopPropagation() prevents the default action - it shouldn't
  
          * fast/events/stopPropagation-checkbox-expected.txt: Added.
          * fast/events/stopPropagation-checkbox.html: Added.
          * fast/events/stopPropagation-submit-expected.txt: Added.
          * fast/events/stopPropagation-submit.html: Added.
  
  Revision  Changes    Path
  1.5       +14 -0     LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ChangeLog	3 Oct 2005 20:55:00 -0000	1.4
  +++ ChangeLog	4 Oct 2005 04:08:03 -0000	1.5
  @@ -1,3 +1,17 @@
  +2005-10-03  Maciej Stachowiak  <mjs at apple.com>
  +
  +        Reviewed by Darin.
  +
  +	Test cases for:
  +	
  +	http://bugzilla.opendarwin.org/show_bug.cgi?id=5180
  +	event.stopPropagation() prevents the default action - it shouldn't
  +
  +        * fast/events/stopPropagation-checkbox-expected.txt: Added.
  +        * fast/events/stopPropagation-checkbox.html: Added.
  +        * fast/events/stopPropagation-submit-expected.txt: Added.
  +        * fast/events/stopPropagation-submit.html: Added.
  +
   2005-10-03  Beth Dakin  <bdakin at apple.com>
   
           Reviewed by Darin.
  
  
  
  1.1                  LayoutTests/fast/events/stopPropagation-checkbox-expected.txt
  
  Index: stopPropagation-checkbox-expected.txt
  ===================================================================
  This test checks whether event.stopPropagation() prevents the default action. It should not! If the default was prevented, you'll see a link below and the text FAIL. On success you will see PASS. The test should say PASS 4 times.
  
   
  PASS
  PASS
  
  
  
  
  1.1                  LayoutTests/fast/events/stopPropagation-checkbox.html
  
  Index: stopPropagation-checkbox.html
  ===================================================================
  <p>This test checks whether event.stopPropagation() prevents the
  default action. It should not! If the default was prevented, you'll
  see a link below and the text FAIL. On success you will see PASS. The
  test should say PASS 4 times.
  
  </p>
  <input type="checkbox" id="checkbox1" onclick="event.stopPropagation()" value="click here">
  <input type="checkbox" id="checkbox2" onclick="event.preventDefault()" value="click here">
  <p>
  
  <script>
  if (window.layoutTestController)
      layoutTestController.dumpAsText();
  
  var checkbox1 = document.getElementById("checkbox1");
  checkbox1.click();
  var checkbox2 = document.getElementById("checkbox2");
  checkbox2.click();
  
  document.write(checkbox1.checked ? "PASS<br>" : "FAIL<br>");
  document.write(checkbox2.checked ? "FAIL<br>" : "PASS<br>");
  
  </script>
  
  
  
  1.1                  LayoutTests/fast/events/stopPropagation-submit-expected.txt
  
  Index: stopPropagation-submit-expected.txt
  ===================================================================
  PASS
  ?x=0&y=0
  
  
  
  1.1                  LayoutTests/fast/events/stopPropagation-submit.html
  
  Index: stopPropagation-submit.html
  ===================================================================
  <p>This test checks whether event.stopPropagation() prevents the
  default action. It should not! If the default was prevented, you'll
  see a link below and the text FAIL. On success you will see PASS (and
  ?x=0&y=0).
  </p>
  <form action="data:text/html,<script>if (window.layoutTestController) layoutTestController.notifyDone();</script>PASS<br>">
  <input type="image" id="image1" onclick="event.stopPropagation()" value="click here">
  </form>
  <p>
  FAIL
  <script>
  if (window.layoutTestController) {
      layoutTestController.dumpAsText();
      layoutTestController.waitUntilDone();
  }
  
  var submit = document.getElementById("image1");
  submit.click();
  
  </script>
  
  
  



More information about the webkit-changes mailing list