Removed prototype www.ecmascript.org revamp.

This commit is contained in:
David Fugate 2011-02-10 09:12:55 -08:00
parent 1f54cd6343
commit 7f1b0fa7a5
35 changed files with 58 additions and 267 deletions

View File

@ -38,11 +38,11 @@ test: function testcase() {
try
{
eval("({foo : 1, get foo(){}});");
return false;
}
catch(e)
{
if(e instanceof SyntaxError)
return true;
return e instanceof SyntaxError;
}
},

View File

@ -38,11 +38,11 @@ test: function testcase() {
try
{
eval("({foo : 1, set foo(x){}});");
return false;
}
catch(e)
{
if(e instanceof SyntaxError)
return true;
return e instanceof SyntaxError;
}
},

View File

@ -38,11 +38,11 @@ test: function testcase() {
try
{
eval("({get foo(){}, foo : 1});");
return false;
}
catch(e)
{
if(e instanceof SyntaxError)
return true;
return e instanceof SyntaxError;
}
},

View File

@ -38,11 +38,11 @@ test: function testcase() {
try
{
eval("({set foo(x){}, foo : 1});");
return false;
}
catch(e)
{
if(e instanceof SyntaxError)
return true;
return e instanceof SyntaxError;
}
},

View File

@ -38,11 +38,11 @@ test: function testcase() {
try
{
eval("({get foo(){}, get foo(){}});");
return false;
}
catch(e)
{
if(e instanceof SyntaxError)
return true;
return e instanceof SyntaxError;
}
},
precondition: function () {

View File

@ -38,11 +38,11 @@ test: function testcase() {
try
{
eval("({set foo(arg){}, set foo(arg1){}});");
return false;
}
catch(e)
{
if(e instanceof SyntaxError)
return true;
return e instanceof SyntaxError;
}
},

View File

@ -38,11 +38,11 @@ test: function testcase() {
try
{
eval("({get foo(){}, set foo(arg){}, get foo(){}});");
return false;
}
catch(e)
{
if(e instanceof SyntaxError)
return true;
return e instanceof SyntaxError;
}
},

View File

@ -38,11 +38,11 @@ test: function testcase() {
try
{
eval("({set foo(arg){}, get foo(){}, set foo(arg1){}});");
return false;
}
catch(e)
{
if(e instanceof SyntaxError)
return true;
return e instanceof SyntaxError;
}
},

View File

@ -41,5 +41,6 @@ test: function testcase() {
if (d === false && typeof(o) === 'object' && o.x === 1) {
return true;
}
return false;
}
});

View File

@ -36,5 +36,6 @@ test: function testcase() {
if (d === false && x === 1) {
return true;
}
return false;
}
});

View File

@ -28,8 +28,6 @@ description: "RegExp.prototype is itself a RegExp",
test: function testcase() {
var s = Object.prototype.toString.call(RegExp.prototype);
if (s === '[object RegExp]') {
return true;
}
return s === '[object RegExp]';
}
});

View File

@ -27,7 +27,6 @@ path: "TestCases/chapter15/15.10/15.10.7/15.10.7.1/15.10.7.1-1.js",
description: "RegExp.prototype.source is of type String",
test: function testcase() {
if((typeof(RegExp.prototype.source)) === 'string')
return true;
return (typeof(RegExp.prototype.source)) === 'string';
}
});

View File

@ -27,7 +27,6 @@ path: "TestCases/chapter15/15.10/15.10.7/15.10.7.2/15.10.7.2-1.js",
description: "RegExp.prototype.global is of type Boolean",
test: function testcase() {
if((typeof(RegExp.prototype.global)) === 'boolean')
return true;
return (typeof(RegExp.prototype.global)) === 'boolean';
}
});

View File

@ -27,7 +27,6 @@ path: "TestCases/chapter15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js",
description: "RegExp.prototype.ignoreCase is of type Boolean",
test: function testcase() {
if((typeof(RegExp.prototype.ignoreCase)) === 'boolean')
return true;
return (typeof(RegExp.prototype.ignoreCase)) === 'boolean';
}
});

View File

@ -27,7 +27,6 @@ path: "TestCases/chapter15/15.10/15.10.7/15.10.7.4/15.10.7.4-1.js",
description: "RegExp.prototype.multiline is of type Boolean",
test: function testcase() {
if((typeof(RegExp.prototype.multiline)) === 'boolean')
return true;
return (typeof(RegExp.prototype.multiline)) === 'boolean';
}
});

View File

@ -27,7 +27,6 @@ path: "TestCases/chapter15/15.10/15.10.7/15.10.7.5/15.10.7.5-1.js",
description: "RegExp.prototype.lastIndex is of type Number",
test: function testcase() {
if((typeof(RegExp.prototype.lastIndex)) === 'number')
return true;
return (typeof(RegExp.prototype.lastIndex)) === 'number';
}
});

View File

@ -37,6 +37,7 @@ test: function testcase() {
desc.hasOwnProperty('set') === false) {
return true;
}
return false;
},
precondition: function prereq() {

View File

@ -37,6 +37,7 @@ test: function testcase() {
desc.hasOwnProperty('set') === false) {
return true;
}
return false;
},
precondition: function prereq() {

View File

@ -37,6 +37,7 @@ test: function testcase() {
desc.hasOwnProperty('set') === false) {
return true;
}
return false;
},
precondition: function prereq() {

View File

@ -34,6 +34,7 @@ test: function testcase() {
if (desc === undefined) {
return true;
}
return false;
},
precondition: function prereq() {

View File

@ -28,13 +28,16 @@ path: "TestCases/chapter15/15.4/15.4.4/15.4.4.14/15.4.4.14-1-1.js",
description: "Array.prototype.indexOf applied to undefined throws a TypeError",
test: function testcase() {
try {Array.prototype.indexOf.call(undefined)}
try {
Array.prototype.indexOf.call(undefined);
return false;
}
catch (e) {
if (e instanceof TypeError) return true;
}
return e instanceof TypeError;
}
},
precondition: function prereq() {
return fnExists(Array.prototype.indexOf);
}
}
});

View File

@ -28,9 +28,12 @@ path: "TestCases/chapter15/15.4/15.4.4/15.4.4.14/15.4.4.14-1-2.js",
description: "Array.prototype.indexOf applied to null throws a TypeError",
test: function testcase() {
try {Array.prototype.indexOf.call(null)}
try {
Array.prototype.indexOf.call(null);
return false;
}
catch (e) {
if (e instanceof TypeError) return true;
return e instanceof TypeError;
}
},

View File

@ -24,11 +24,11 @@ ES5Harness.registerTest({
path: "TestCases/chapter15/15.4/15.4.4/15.4.4.17/15.4.4.17-5-1.js",
description: "Array.prototype.some - thisArg not passed",
description: "Array.prototype.some - thisArg is passed",
test: function testcase() {
this._15_4_4_17_5_1 = true;
var _15_4_4_17_5_1 = false;
this._15_4_4_17_5_1 = false;
var _15_4_4_17_5_1 = true;
function callbackfn(val, idx, obj) {
return this._15_4_4_17_5_1;

View File

@ -24,11 +24,11 @@ ES5Harness.registerTest({
path: "TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-1.js",
description: "Array.prototype.forEach - thisArg not passed",
description: "Array.prototype.forEach - thisArg is passed",
test: function testcase() {
this._15_4_4_18_5_1 = true;
var _15_4_4_18_5_1 = false;
this._15_4_4_18_5_1 = false;
var _15_4_4_18_5_1 = true;
var result;
function callbackfn(val, idx, obj) {
result = this._15_4_4_18_5_1;

View File

@ -24,11 +24,11 @@ ES5Harness.registerTest({
path: "TestCases/chapter15/15.4/15.4.4/15.4.4.20/15.4.4.20-5-1.js",
description: "Array.prototype.filter - thisArg not passed",
description: "Array.prototype.filter - thisArg is passed",
test: function testcase() {
this._15_4_4_17_5_1 = true;
var _15_4_4_17_5_1 = false;
this._15_4_4_17_5_1 = false;
var _15_4_4_17_5_1 = true;
function callbackfn(val, idx, obj) {
return this._15_4_4_17_5_1;

View File

@ -29,12 +29,12 @@ description: "String.prototype.trim throws TypeError when string is undefined",
test: function testcase() {
try
{
String.prototype.trim.call(undefined);
String.prototype.trim.call(undefined);
return false;
}
catch(e)
{
if(e instanceof TypeError)
return true;
return e instanceof TypeError;
}
},

View File

@ -30,11 +30,11 @@ test: function testcase() {
try
{
String.prototype.trim.call(null);
return false;
}
catch(e)
{
if(e instanceof TypeError)
return true;
return e instanceof TypeError;
}
},

View File

@ -27,9 +27,7 @@ path: "TestCases/chapter15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js",
description: "String.prototype.trim handles whitepace and lineterminators (\\uFEFFabc)",
test: function testcase() {
if ("\uFEFFabc".trim() === "abc") {
return true;
}
return "\uFEFFabc".trim() === "abc";
},
precondition: function prereq() {

View File

@ -27,9 +27,7 @@ path: "TestCases/chapter15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js",
description: "String.prototype.trim handles whitepace and lineterminators (abc\\uFEFF)",
test: function testcase() {
if ("abc\uFEFF".trim() === "abc") {
return true;
}
return "abc\uFEFF".trim() === "abc";
},
precondition: function prereq() {

View File

@ -27,9 +27,7 @@ path: "TestCases/chapter15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js",
description: "String.prototype.trim handles whitepace and lineterminators (\\uFEFF\\uFEFF)",
test: function testcase() {
if ("\uFEFF\uFEFF".trim() === "") {
return true;
}
return "\uFEFF\uFEFF".trim() === "";
},
precondition: function prereq() {

View File

@ -1,46 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>ECMAScript.Org</title>
<link href="resources/styles/style.css" media="screen" rel="stylesheet" title="CSS" type="text/css" />
</head>
<body>
<div class="wrapper">
<div class="logoHeader">
<div class="ecmascriptlogoBg"><img src="resources/images/ecmascriptlogo.png" /></div>
<div><img src="resources/images/tc39.png" /></div>
</div>
<div class="navBar">
<ul>
<li><a href="#" class="selected nav-link" id="home">Home</a></li>
<li><a href="projects.html" class="nav-link" id="projects">Projects</a></li>
<li><a href="http://test262.ecmascript.org" class="nav-link test-report-link" id="testing">Testing</a></li>
<li><a href="specifications.html" class="nav-link" id="specifications">Specifications</a></li>
<li><a href="tc39.html" class="nav-link" id="tc39">TC39</a></li>
</ul>
</div>
<div id="contentContainer">
<!-- This is the Main Content Container -->
<div>
<p class="headers">Welcome to the home of ECMAScript</p>
<p class=content>This site is home of the <a href="http://www.ecma-international.org/">Ecma International</a> <a href="http://www.ecma-international.org/memento/TC39.htm">TC39 committee</a> which is responsible for developing international standards relating to the ECMAScript programming language.
</p>
<p class=content>ECMAScript, which is more commonly known by the name JavaScript™, is an essential component of every web browser and the ECMAScript standard is one of the core standards that enable the existence of interoperable web applications on the World Wide Web.
</p>
<p class=content>At the December 2009 General Assembly, the Fifth Edition Candidate Specification was officially adopted as <a href="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf">Standard ECMA-262 5th Edition</a>. The Fifth Edition codifies de facto interpretations of the language specification that have become common among browser implementations and adds support for new features that have emerged since the publication of the Third Edition. Such features include accessor properties, reflective creation and inspection of objects, program control of property attributes, additional array manipulation functions, support for the JSON object encoding format, and a strict mode that provides enhanced error checking and program security.
<p class="content">This site hosts working documents and other resources related to ongoing TC39 projects. Anyone interesting in contributing to the ongoing development ECMAScript standards are encouraged to join Ecma International and participate in TC39.</p>
</p>
</div>
</div>
<div class="footer">
<!--<div class="Links"> <a href="">Privacy</a> | <a href="">Terms of Use</a> </div>-->
<div class="links">Ver. 0.1.1 16-Nov-2010</div>
<div class="copyright"> Domain donated by <a href="http://www.opendomain.org/">OpenDomain</a> | <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ecmascript.org%2F;accept=text%2Fhtml%2C%20application%2Fxhtml%2Bxml%2C%20*%2F*;accept-language=en-US">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.ecmascript.org%2F">CSS</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -1,68 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>ECMAScript.Org</title>
<link href="resources/styles/style.css" media="screen" rel="stylesheet" title="CSS" type="text/css" />
</head>
<body>
<div class="wrapper">
<div class="logoHeader">
<div class="ecmascriptlogoBg"><img src="resources/images/ecmascriptlogo.png" /></div>
<div><img src="resources/images/tc39.png" /></div>
</div>
<div class="navBar">
<ul>
<li><a href="ecmascripthome.html" class="nav-link" id="home">Home</a></li>
<li><a href="projects.html" class="selected nav-link" id="projects">Projects</a></li>
<li><a href="http://test262.ecmascript.org" class="nav-link test-report-link" id="testing">Testing</a></li>
<li><a href="specifications.html" class="nav-link" id="specifications">Specifications</a></li>
<li><a href="tc39.html" class="nav-link" id="tc39">TC39</a></li>
</ul>
</div>
<div id="contentContainer">
<!-- This is the Main Content Container -->
<div>
<div class="projectSection">
<p class="headers">ES5: ECMAScript 5th Edition</p>
<a href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">Project's site</a>
</div>
<div class="projectSection">
<p class="headers">Harmony</p>
<a href="http://wiki.ecmascript.org/">Project's site</a>
</div>
<div class="projectSection">
<p class="headers">Test262</p>
<a href="http://test262.ecmascript.org/">Project's site</a>
</div>
<div class="projectSection">
<p class="headers">Internationalization</p>
<a href="">Project's site</a>
</div>
<div class="projectSection">
<p class="headers">Other Standards</p>
<a href="">Project's site</a>
</div>
</div>
</div>
<div class="footer">
<!--<div class="Links"> <a href="">Privacy</a> | <a href="">Terms of Use</a> </div>-->
<div class="links">Ver. 0.1.1 16-Nov-2010</div>
<div class="copyright"> Domain donated by <a href="http://www.opendomain.org/">OpenDomain</a> | <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ecmascript.org%2F;accept=text%2Fhtml%2C%20application%2Fxhtml%2Bxml%2C%20*%2F*;accept-language=en-US">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.ecmascript.org%2F">CSS</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -1,4 +1,4 @@
<testSuite numTests="8558" version="0.3" date="02/08/2011">
<testSuite numTests="8558" version="0.3" date="02/10/2011">
<testGroup>resources/scripts/testcases/07_Lexical_Conventions.xml</testGroup>
<testGroup>resources/scripts/testcases/08_Types.xml</testGroup>
<testGroup>resources/scripts/testcases/09_Type_Conversion.xml</testGroup>

View File

@ -1,56 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>ECMAScript.Org</title>
<link href="resources/styles/style.css" media="screen" rel="stylesheet" title="CSS" type="text/css" />
</head>
<body>
<div class="wrapper">
<div class="logoHeader">
<div class="ecmascriptlogoBg"><img src="resources/images/ecmascriptlogo.png" /></div>
<div><img src="resources/images/tc39.png" /></div>
</div>
<div class="navBar">
<ul>
<li><a href="ecmascripthome.html" class="nav-link" id="home">Home</a></li>
<li><a href="projects.html" class="nav-link" id="projects">Projects</a></li>
<li><a href="http://test262.ecmascript.org" class="nav-link test-report-link" id="testing">Testing</a></li>
<li><a href="specifications.html" class="selected nav-link" id="specifications">Specifications</a></li>
<li><a href="tc39.html" class="nav-link" id="tc39">TC39</a></li>
</ul>
</div>
<div id="contentContainer">
<!-- This is the Main Content Container -->
<div>
<p class="content">The ECMA-262 standard is the official documentation for the ECMAScript language.</p>
<p class="headers">Edition 5</p>
<p class="content">The Fifth Edition of ECMA-262 has been approved and is available for public download.</p>
<ul><li class="content">Download <a href="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf">ECMA-262, Edition 5</a></li>
<li class="content"><a href="http://wiki.ecmascript.org/lib/exe/fetch.php?id=start&cache=cache&media=resources:es5_errata_7-31-10.pdf">ES5 errata</a></li></ul>
<p class="headers">Previous Editions of the ECMAScript standard</p>
<ul>
<li class="content"><a href="http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf">ECMA-262 Edition 3</a> (pdf)</li>
<li class="content"><a href="http://www.mozilla.org/js/language/E262-3-errata.html">Errata</a> in the Edition 3 specification</li>
<li class="content"><a href="http://www.mozilla.org/js/language/E262.pdf">ECMA-262 Edition 1</a></li>
<li class="content"><a href="http://www.mozilla.org/js/language/E262-2.pdf">ECMA-262 Edition 2</a></li>
</ul>
<p class="headers">Other TC39 Standards</p>
<ul>
<li class="content"><a href="http://www.ecma-international.org/publications/standards/Ecma-357.htm">ECMA 357</a></li>
</ul>
</div>
</div>
<div class="footer">
<!--<div class="Links"> <a href="">Privacy</a> | <a href="">Terms of Use</a> </div>-->
<div class="links">Ver. 0.1.1 16-Nov-2010</div>
<div class="copyright"> Domain donated by <a href="http://www.opendomain.org/">OpenDomain</a> | <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ecmascript.org%2F;accept=text%2Fhtml%2C%20application%2Fxhtml%2Bxml%2C%20*%2F*;accept-language=en-US">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.ecmascript.org%2F">CSS</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -1,38 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>ECMAScript.Org</title>
<link href="resources/styles/style.css" media="screen" rel="stylesheet" title="CSS" type="text/css" />
</head>
<body>
<div class="wrapper">
<div class="logoHeader">
<div class="ecmascriptlogoBg"><img src="resources/images/ecmascriptlogo.png" /></div>
<div><img src="resources/images/tc39.png" /></div>
</div>
<div class="navBar">
<ul>
<li><a href="ecmascripthome.html" class="nav-link" id="home">Home</a></li>
<li><a href="projects.html" class="nav-link" id="projects">Projects</a></li>
<li><a href="http://test262.ecmascript.org" class="nav-link test-report-link" id="testing">Testing</a></li>
<li><a href="specifications.html" class="nav-link" id="specifications">Specifications</a></li>
<li><a href="tc39.html" class="selected nav-link" id="tc39">TC39</a></li>
</ul>
</div>
<div id="contentContainer">
<!-- This is the Main Content Container -->
<div>
</div>
</div>
<div class="footer">
<!--<div class="Links"> <a href="">Privacy</a> | <a href="">Terms of Use</a> </div>-->
<div class="links">Ver. 0.1.1 16-Nov-2010</div>
<div class="copyright"> Domain donated by <a href="http://www.opendomain.org/">OpenDomain</a> | <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ecmascript.org%2F;accept=text%2Fhtml%2C%20application%2Fxhtml%2Bxml%2C%20*%2F*;accept-language=en-US">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.ecmascript.org%2F">CSS</a>
</div>
</div>
</div>
</body>
</html>