Fix tests

This commit is contained in:
e.gavrin 2014-10-07 22:28:15 +04:00
parent 3d3da5d481
commit 2ebc8ef6fd
3 changed files with 6 additions and 54 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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);