⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181886 in webkit


Ignore:
Timestamp:
Mar 23, 2015, 6:48:54 PM (11 years ago)
Author:
fpizlo@apple.com
Message:

Move the bulk of the js/dom/const test into js/const, so that run-jsc-stress-tests runs it.

Rubber stamped by Andreas Kling and Michael Saboff.

  • js/const-expected.txt: Copied from LayoutTests/js/dom/const-expected.txt.
  • js/const.html: Copied from LayoutTests/js/dom/const.html.
  • js/dom/const-expected.txt: Replaced.
  • js/dom/const.html: Replaced.
  • js/resources/const.js: Removed.
  • js/script-tests/const.js: Copied from LayoutTests/js/resources/const.js.
Location:
trunk/LayoutTests
Files:
2 added
1 edited
2 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r181877 r181886  
     12015-03-23  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Move the bulk of the js/dom/const test into js/const, so that run-jsc-stress-tests runs it.
     4
     5        Rubber stamped by Andreas Kling and Michael Saboff.
     6
     7        * js/const-expected.txt: Copied from LayoutTests/js/dom/const-expected.txt.
     8        * js/const.html: Copied from LayoutTests/js/dom/const.html.
     9        * js/dom/const-expected.txt: Replaced.
     10        * js/dom/const.html: Replaced.
     11        * js/resources/const.js: Removed.
     12        * js/script-tests/const.js: Copied from LayoutTests/js/resources/const.js.
     13
    1142015-03-23  Andy Estes  <aestes@apple.com>
    215
  • trunk/LayoutTests/js/const-expected.txt

    r181875 r181886  
    5050PASS f() is f
    5151PASS const a; is undefined
    52 PASS bodyId is document.getElementById('bodyId')
    53 PASS ranConstInitialiser is true
    5452PASS tryCatch1Result is 5
    5553PASS tryCatch2Result is 5
  • trunk/LayoutTests/js/const.html

    r181875 r181886  
    22<html>
    33<head>
    4 <script src="../../resources/js-test-pre.js"></script>
     4<script src="../resources/js-test-pre.js"></script>
    55</head>
    6 <body id="bodyId">
    7 <script src="../resources/const.js"></script>
    8 <script src="../../resources/js-test-post.js"></script>
     6<body>
     7<script src="script-tests/const.js"></script>
     8<script src="../resources/js-test-post.js"></script>
    99</body>
    1010</html>
  • trunk/LayoutTests/js/script-tests/const.js

    r181875 r181886  
    113113shouldBe("const a;", "undefined");
    114114
    115 // Make sure we don't override properties placed on the global object
    116 var ranConstInitialiser = false;
    117 const bodyId = (ranConstInitialiser = true, "Const initialiser overwrote existing property");
    118 shouldBe("bodyId", "document.getElementById('bodyId')");
    119 shouldBeTrue("ranConstInitialiser");
    120 
    121115// Make sure that dynamic scopes (catch, with) don't break const declarations
    122116function tryCatch1() {
Note: See TracChangeset for help on using the changeset viewer.