Skip to content
Snippets Groups Projects
Commit 176f5f85 authored by Mark Miller's avatar Mark Miller
Browse files

Generated adjusted tests

parent ea9a2f4c
No related branches found
No related tags found
No related merge requests found
Showing
with 44 additions and 20 deletions
......@@ -24,7 +24,7 @@
* @strictOnly
*/
"use strict";
function f() {
return typeof this;
}
......
......@@ -7,7 +7,7 @@
* @negative EarlyErrorRePat
*/
"use strict";
throw NotEarlyError;
function f_10_5_1_gs(){
......
......@@ -6,7 +6,7 @@
* @strictOnly
*/
"use strict";
function f_10_6_1_gs(){
return arguments.callee;
}
......
......@@ -7,7 +7,7 @@
* @negative .
*/
"use strict";
function f_10_6_1_gs(){
return arguments.callee;
}
......
......@@ -6,7 +6,7 @@
* @strictOnly
*/
"use strict";
if (this===undefined) {
throw NotEarlyError;
}
......@@ -7,6 +7,6 @@
* @negative EarlyErrorRePat
*/
"use strict";
throw NotEarlyError;
eval *= 20;
......@@ -7,6 +7,6 @@
* @negative EarlyErrorRePat
*/
"use strict";
throw NotEarlyError;
arguments++;
......@@ -7,6 +7,6 @@
* @negative EarlyErrorRePat
*/
"use strict";
throw NotEarlyError;
--arguments;
......@@ -24,4 +24,7 @@
*/
assertTruthy(+"" === 0);
function testcase() {
return +"" === 0;
}
runTestCase(testcase);
......@@ -24,4 +24,7 @@
*/
assertTruthy(-"" === 0);
function testcase() {
return -"" === 0;
}
runTestCase(testcase);
......@@ -7,6 +7,6 @@
* @negative EarlyErrorRePat
*/
"use strict";
throw NotEarlyError;
with ({}) { }
......@@ -7,6 +7,6 @@
* @negative EarlyErrorRePat
*/
"use strict";
throw NotEarlyError;
try { } catch (eval) { }
......@@ -7,6 +7,6 @@
* @negative NotEarlyErrorString
*/
"use strict";
var _13_4_17_fun = new Function('eval = 42;');
throw NotEarlyError;
......@@ -7,6 +7,6 @@
* @negative EarlyErrorRePat
*/
"use strict";
throw NotEarlyError;
function _13_0_4_5_fun() { eval = 42; };
......@@ -24,4 +24,7 @@
*/
assertTruthy(isNaN(parseInt("")) && parseInt("") !== parseInt(""));
function testcase() {
return isNaN(parseInt("")) && parseInt("") !== parseInt("");
}
runTestCase(testcase);
......@@ -24,4 +24,7 @@
*/
assertTruthy(isNaN(parseFloat("")) && parseFloat("") !== parseFloat(""));
function testcase() {
return isNaN(parseFloat("")) && parseFloat("") !== parseFloat("");
}
runTestCase(testcase);
......@@ -24,4 +24,7 @@
*/
assertTruthy((typeof(RegExp.prototype.source)) === 'string');
function testcase() {
return (typeof(RegExp.prototype.source)) === 'string';
}
runTestCase(testcase);
......@@ -24,4 +24,7 @@
*/
assertTruthy((typeof(RegExp.prototype.global)) === 'boolean');
function testcase() {
return (typeof(RegExp.prototype.global)) === 'boolean';
}
runTestCase(testcase);
......@@ -24,4 +24,7 @@
*/
assertTruthy((typeof(RegExp.prototype.ignoreCase)) === 'boolean');
function testcase() {
return (typeof(RegExp.prototype.ignoreCase)) === 'boolean';
}
runTestCase(testcase);
......@@ -24,4 +24,7 @@
*/
assertTruthy((typeof(RegExp.prototype.multiline)) === 'boolean');
function testcase() {
return (typeof(RegExp.prototype.multiline)) === 'boolean';
}
runTestCase(testcase);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment