mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix tests
This commit is contained in:
parent
3d3da5d481
commit
2ebc8ef6fd
@ -12,22 +12,5 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
/*
|
||||
<test file="12.02.01-001.js">
|
||||
<author>s.ryabkova</author>
|
||||
<checks>
|
||||
Check that in non strict mode variable with name "eval" could be created
|
||||
</checks>
|
||||
<keywords>
|
||||
var, eval, if
|
||||
</keywords>
|
||||
</test>
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
var eval = 1
|
||||
if (eval === 1 && typeof(eval) === "number")
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
var eval = 1;
|
||||
assert(eval === 1 && typeof (eval) === "number");
|
||||
|
||||
@ -12,23 +12,6 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
/*
|
||||
<test file="12.02.01-003.js">
|
||||
<author>s.ryabkova</author>
|
||||
<checks>
|
||||
Check that in non strict mode variable with name "arguments"
|
||||
could be created
|
||||
</checks>
|
||||
<keywords>
|
||||
var, arguments, if
|
||||
</keywords>
|
||||
</test>
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
var arguments=2;
|
||||
if (arguments === 2 && typeof(arguments) === "number")
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
var arguments = 2;
|
||||
assert(arguments === 2 && typeof (arguments) === "number");
|
||||
|
||||
|
||||
@ -12,18 +12,4 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
/*
|
||||
<test file="15.07.01-001.js">
|
||||
<author>s.ryabkova</author>
|
||||
<checks>
|
||||
Check Number Constructor called as a function performs a type conversion and returns a number value (not a Number Object) computed by ToNumber() function
|
||||
</checks>
|
||||
<keywords>
|
||||
built-in, Number
|
||||
</keywords>
|
||||
</test>
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
return (Number("123456") === 123456)
|
||||
}
|
||||
assert(Number("123456") === 123456);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user