[webkit-changes] cvs commit: WebCore/layout-tests/fast/js assign-expected.txt assign.html code-serialize-paren-expected.txt code-serialize-paren.html

Maciej mjs at opensource.apple.com
Tue Aug 30 02:55:42 PDT 2005


mjs         05/08/30 02:55:41

  Modified:    .        ChangeLog
  Added:       layout-tests/fast/js assign-expected.txt assign.html
                        code-serialize-paren-expected.txt
                        code-serialize-paren.html
  Log:
          Add some test cases that I apparently forgot to commit before.
  
          * layout-tests/fast/js/assign-expected.txt: Added.
          * layout-tests/fast/js/assign.html: Added.
          * layout-tests/fast/js/code-serialize-paren-expected.txt: Added.
          * layout-tests/fast/js/code-serialize-paren.html: Added.
  
  Revision  Changes    Path
  1.40      +9 -0      WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- ChangeLog	30 Aug 2005 09:30:19 -0000	1.39
  +++ ChangeLog	30 Aug 2005 09:55:40 -0000	1.40
  @@ -1,5 +1,14 @@
   2005-08-30  Maciej Stachowiak  <mjs at apple.com>
   
  +        Add some test cases that I apparently forgot to commit before.
  +
  +        * layout-tests/fast/js/assign-expected.txt: Added.
  +        * layout-tests/fast/js/assign.html: Added.
  +        * layout-tests/fast/js/code-serialize-paren-expected.txt: Added.
  +        * layout-tests/fast/js/code-serialize-paren.html: Added.
  +
  +2005-08-30  Maciej Stachowiak  <mjs at apple.com>
  +
           Reviewed by Eric.
   
   	- http://bugzilla.opendarwin.org/show_bug.cgi?id=4749
  
  
  
  1.1                  WebCore/layout-tests/fast/js/assign-expected.txt
  
  Index: assign-expected.txt
  ===================================================================
  This test checks whether various forms of assignment expression are allowed. It should print the numbers 1-10 on separate lines, and nothing else (besides this paragraph).
  
  
  1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  
  
  
  
  1.1                  WebCore/layout-tests/fast/js/assign.html
  
  Index: assign.html
  ===================================================================
  <body>
  <p>
  This test checks whether various forms of assignment expression are
  allowed. It should print the numbers 1-10 on separate lines, and
  nothing else (besides this paragraph).
  <p>
  <hr>
  <pre id="console">
  </pre>
  <script>
  if (window.layoutTestController)
      layoutTestController.dumpAsText();
  
  function log(s)
  {
      document.getElementById('console').innerHTML += s + '<br>';
  }
  
  var x = 0;
  var y = 0;
  
  try { eval ('x = 1; log(x);'); } catch (e) {}
  try { eval ('window.x = 2; log(x);'); } catch (e) {}
  try { eval ('window["x"] = 3; log(x);'); } catch (e) {}
  try { eval ('(x) = 4; log(x);'); } catch (e) {}
  try { eval ('(window.x) = 5; log(x);'); } catch (e) {}
  try { eval ('(window["x"]) = 6; log(x);'); } catch (e) {}
  try { eval ('y, x = 7; log(x);'); } catch (e) {}
  try { eval ('((x)) = 8; log(x);'); } catch (e) {}
  try { eval ('((window.x)) = 9; log(x);'); } catch (e) {}
  try { eval ('((window["x"])) = 10; log(x);'); } catch (e) {}
  try { eval ('(y, x) = "FAIL"; log(x);'); } catch (e) {}
  try { eval ('(true ? x : y) = "FAIL"; log(x);'); } catch (e) {}
  try { eval ('x++ = "FAIL"; log(x);'); } catch (e) {}
  
  </script>
  
  </body>
  
  
  
  1.1                  WebCore/layout-tests/fast/js/code-serialize-paren-expected.txt
  
  Index: code-serialize-paren-expected.txt
  ===================================================================
  This test checks whether converting function code to a string preserves semantically significant parentheses. The results should say PASS.
  PASS
  
  
  
  
  1.1                  WebCore/layout-tests/fast/js/code-serialize-paren.html
  
  Index: code-serialize-paren.html
  ===================================================================
  <body> 
  <div> This test checks whether converting function code to a
  string preserves semantically significant parentheses. The results
  should say PASS.
  </div>
  <hr>
  
  <div id="console">
  </dic>
  
  <script>
  if (window.layoutTestController)
      layoutTestController.dumpAsText();
  
  function log(s)
  {
      document.getElementById("console").innerHTML += s + "<br>";
  }
  
  var functionStr = (function () { return (x + y) * z; }).toString();
  
  if (functionStr.search('return.*\\(') < 0) {
      log("FAIL (functionStr == \"" + functionStr + "\")");
  } else {
      log("PASS");
  }
  
  </script>
  </body>
  
  
  



More information about the webkit-changes mailing list