Changeset 181886 in webkit
- Timestamp:
- Mar 23, 2015, 6:48:54 PM (11 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 1 edited
- 2 copied
- 1 moved
-
ChangeLog (modified) (1 diff)
-
js/const-expected.txt (copied) (copied from trunk/LayoutTests/js/dom/const-expected.txt ) (1 diff)
-
js/const.html (copied) (copied from trunk/LayoutTests/js/dom/const.html ) (1 diff)
-
js/dom/const-expected.txt (added)
-
js/dom/const.html (added)
-
js/script-tests/const.js (moved) (moved from trunk/LayoutTests/js/resources/const.js ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r181877 r181886 1 2015-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 1 14 2015-03-23 Andy Estes <aestes@apple.com> 2 15 -
trunk/LayoutTests/js/const-expected.txt
r181875 r181886 50 50 PASS f() is f 51 51 PASS const a; is undefined 52 PASS bodyId is document.getElementById('bodyId')53 PASS ranConstInitialiser is true54 52 PASS tryCatch1Result is 5 55 53 PASS tryCatch2Result is 5 -
trunk/LayoutTests/js/const.html
r181875 r181886 2 2 <html> 3 3 <head> 4 <script src="../ ../resources/js-test-pre.js"></script>4 <script src="../resources/js-test-pre.js"></script> 5 5 </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> 9 9 </body> 10 10 </html> -
trunk/LayoutTests/js/script-tests/const.js
r181875 r181886 113 113 shouldBe("const a;", "undefined"); 114 114 115 // Make sure we don't override properties placed on the global object116 var ranConstInitialiser = false;117 const bodyId = (ranConstInitialiser = true, "Const initialiser overwrote existing property");118 shouldBe("bodyId", "document.getElementById('bodyId')");119 shouldBeTrue("ranConstInitialiser");120 121 115 // Make sure that dynamic scopes (catch, with) don't break const declarations 122 116 function tryCatch1() {
Note:
See TracChangeset
for help on using the changeset viewer.