Fix tests
This commit is contained in:
@@ -12,22 +12,5 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
/*
|
var eval = 1;
|
||||||
<test file="12.02.01-001.js">
|
assert(eval === 1 && typeof (eval) === "number");
|
||||||
<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;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -12,23 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
/*
|
var arguments = 2;
|
||||||
<test file="12.02.01-003.js">
|
assert(arguments === 2 && typeof (arguments) === "number");
|
||||||
<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;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -12,18 +12,4 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
/*
|
assert(Number("123456") === 123456);
|
||||||
<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)
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user