[webkit-changes] cvs commit: WebCore/layout-tests/fast/js
delete-syntax-expected.txt delete-syntax.html
postfix-syntax-expected.txt postfix-syntax.html
prefix-syntax-expected.txt prefix-syntax.html
typeof-syntax-expected.txt typeof-syntax.html
Maciej
mjs at opensource.apple.com
Sat Sep 24 15:39:29 PDT 2005
mjs 05/09/24 15:39:29
Modified: . ChangeLog
Added: layout-tests/fast/js delete-syntax-expected.txt
delete-syntax.html postfix-syntax-expected.txt
postfix-syntax.html prefix-syntax-expected.txt
prefix-syntax.html typeof-syntax-expected.txt
typeof-syntax.html
Log:
- some JavaScript syntax test cases
* layout-tests/fast/js/delete-syntax-expected.txt: Added.
* layout-tests/fast/js/delete-syntax.html: Added.
* layout-tests/fast/js/postfix-syntax-expected.txt: Added.
* layout-tests/fast/js/postfix-syntax.html: Added.
* layout-tests/fast/js/prefix-syntax-expected.txt: Added.
* layout-tests/fast/js/prefix-syntax.html: Added.
* layout-tests/fast/js/typeof-syntax-expected.txt: Added.
* layout-tests/fast/js/typeof-syntax.html: Added.
Revision Changes Path
1.163 +13 -0 WebCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebCore/ChangeLog,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -r1.162 -r1.163
--- ChangeLog 24 Sep 2005 13:50:39 -0000 1.162
+++ ChangeLog 24 Sep 2005 22:39:27 -0000 1.163
@@ -1,3 +1,16 @@
+2005-09-24 Maciej Stachowiak <mjs at apple.com>
+
+ - some JavaScript syntax test cases
+
+ * layout-tests/fast/js/delete-syntax-expected.txt: Added.
+ * layout-tests/fast/js/delete-syntax.html: Added.
+ * layout-tests/fast/js/postfix-syntax-expected.txt: Added.
+ * layout-tests/fast/js/postfix-syntax.html: Added.
+ * layout-tests/fast/js/prefix-syntax-expected.txt: Added.
+ * layout-tests/fast/js/prefix-syntax.html: Added.
+ * layout-tests/fast/js/typeof-syntax-expected.txt: Added.
+ * layout-tests/fast/js/typeof-syntax.html: Added.
+
2005-09-24 Duncan Wilcox <duncan at mclink.it>
- patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=4963>
1.1 WebCore/layout-tests/fast/js/delete-syntax-expected.txt
Index: delete-syntax-expected.txt
===================================================================
This test checks whether various forms of delete expression are allowed. It should print the numbers 1-10 on separate lines, and nothing else (besides this paragraph).
true
true
true
true
true
true
true
true
true
true
true
true
true
true
true
true
true
true
true
true
1.1 WebCore/layout-tests/fast/js/delete-syntax.html
Index: delete-syntax.html
===================================================================
<body>
<p>
This test checks whether various forms of delete 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>';
}
window.x = 0;
window.y = 0;
try { eval ('log(delete x);'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete window.x);'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete window["x"]);'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete (x));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete (window.x));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete (window["x"]));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log((y, delete x));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete ((x)));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete ((window.x)));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete ((window["x"])));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete (y, x));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete (true ? x : y));'); } catch (e) { log("FAIL"); }
window.x = 0;
window.y = 0;
try { eval ('log(delete nonexistent)'); } catch (e) { log("FAIL"); }
try { eval ('log(delete window.nonexistent)'); } catch (e) { log("FAIL"); }
try { eval ('log(delete window["nonexistent"])'); } catch (e) { log("FAIL");}
try { eval ('log(delete (nonexistent))'); } catch (e) { log("FAIL");}
try { eval ('log(delete (window.nonexistent))'); } catch (e) { log("FAIL"); }
try { eval ('log(delete (window["nonexistent"]))'); } catch (e) { log("FAIL"); }
try { eval ('log(delete "x")'); } catch (e) { log("FAIL"); }
try { eval ('log(delete (2 + 3))'); } catch (e) { log("FAIL"); }
</script>
</body>
1.1 WebCore/layout-tests/fast/js/postfix-syntax-expected.txt
Index: postfix-syntax-expected.txt
===================================================================
This test checks whether various forms of postincrement expression are allowed. It should print the numbers 0-9 on separate lines, and nothing else (besides this paragraph).
0
1
2
3
4
5
6
7
8
9
1.1 WebCore/layout-tests/fast/js/postfix-syntax.html
Index: postfix-syntax.html
===================================================================
<body>
<p>
This test checks whether various forms of postincrement expression are
allowed. It should print the numbers 0-9 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 ('log(x++);'); } catch (e) {}
try { eval ('log(window.x++);'); } catch (e) {}
try { eval ('log(window["x"]++);'); } catch (e) {}
try { eval ('log((x)++);'); } catch (e) {}
try { eval ('log((window.x)++);'); } catch (e) {}
try { eval ('log((window["x"])++);'); } catch (e) {}
try { eval ('log((y, x++));'); } catch (e) {}
try { eval ('log(((x))++);'); } catch (e) {}
try { eval ('log(((window.x))++);'); } catch (e) {}
try { eval ('log(((window["x"]))++);'); } catch (e) {}
try { eval ('log((y, x)++);'); } catch (e) {}
try { eval ('log((true ? x : y)++);'); } catch (e) {}
try { eval ('log(x++++);'); } catch (e) {}
</script>
</body>
1.1 WebCore/layout-tests/fast/js/prefix-syntax-expected.txt
Index: prefix-syntax-expected.txt
===================================================================
This test checks whether various forms of preincrement 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/prefix-syntax.html
Index: prefix-syntax.html
===================================================================
<body>
<p>
This test checks whether various forms of preincrement 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 ('log(++x);'); } catch (e) {}
try { eval ('log(++window.x);'); } catch (e) {}
try { eval ('log(++window["x"]);'); } catch (e) {}
try { eval ('log(++(x));'); } catch (e) {}
try { eval ('log(++(window.x));'); } catch (e) {}
try { eval ('log(++(window["x"]));'); } catch (e) {}
try { eval ('log((y, ++x));'); } catch (e) {}
try { eval ('log(++((x)));'); } catch (e) {}
try { eval ('log(++((window.x)));'); } catch (e) {}
try { eval ('log(++((window["x"])));'); } catch (e) {}
try { eval ('log(++(y, x));'); } catch (e) {}
try { eval ('log(++(true ? x : y));'); } catch (e) {}
try { eval ('log(++++x);'); } catch (e) {}
</script>
</body>
1.1 WebCore/layout-tests/fast/js/typeof-syntax-expected.txt
Index: typeof-syntax-expected.txt
===================================================================
This test checks whether various forms of typeof expression are allowed. It should printf number 12 times and unknown 6 times on separate lines, and nothing else (besides this paragraph). In particular it should not say FAIL.
number
number
number
number
number
number
number
number
number
number
number
number
undefined
undefined
undefined
undefined
undefined
undefined
1.1 WebCore/layout-tests/fast/js/typeof-syntax.html
Index: typeof-syntax.html
===================================================================
<body>
<p>
This test checks whether various forms of typeof expression are
allowed. It should printf number 12 times and unknown 6 times on
separate lines, and nothing else (besides this paragraph). In
particular it should not say FAIL.
</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 ('log(typeof x);'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof window.x);'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof window["x"]);'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof (x));'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof (window.x));'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof (window["x"]));'); } catch (e) { log("FAIL"); }
try { eval ('log((y, typeof x));'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof ((x)));'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof ((window.x)));'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof ((window["x"])));'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof (y, x));'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof (true ? x : y));'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof nonexistent)'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof window.nonexistent)'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof window["nonexistent"])'); } catch (e) { log("FAIL");}
try { eval ('log(typeof (nonexistent))'); } catch (e) { log("FAIL");}
try { eval ('log(typeof (window.nonexistent))'); } catch (e) { log("FAIL"); }
try { eval ('log(typeof (window["nonexistent"]))'); } catch (e) { log("FAIL"); }
</script>
</body>
More information about the webkit-changes
mailing list