From 9a4b4011f8b8f3fa9f8b6b5de4713e83f6689ed9 Mon Sep 17 00:00:00 2001 From: Norbert Lindenberg Date: Wed, 18 Jul 2012 12:32:54 -0700 Subject: [PATCH] Got test402 web site into usable shape. Unified headers of test262/402 sites. - Added table of contents for ECMA-402. - Added ability to load the right table of contents into results display. - Added meaningful text to test402 web page. - Updated test262 web pages for 5.1 edition of ECMA-262. - Unified headers of test262/402 web pages to ECMAScript . - Replaced text logos with styled text. - Decapitalized some text; fixed a typo; expanded an abbreviation. - Fixed a few issues found by W3 HTML validator. --- console/harness/helper.js | 4 +- test/harness/helper.js | 4 +- .../templates/runner.bestPractice.html | 37 ++-- tools/packaging/templates/runner.intl402.html | 65 ++++--- tools/packaging/templates/runner.test262.html | 52 +++--- website/default.html | 52 +++--- website/harness/helper.js | 4 +- website/images/ecmascriptlogo.png | Bin 1934 -> 0 bytes website/images/logo.png | Bin 3185 -> 0 bytes website/metadata/ecma-402-toc.xml | 158 ++++++++++++++++++ website/styles/style.css | 38 ++--- website/testcases_bestPractice.html | 37 ++-- website/testcases_ch07.html | 52 +++--- website/testcases_ch08.html | 52 +++--- website/testcases_ch09.html | 52 +++--- website/testcases_ch10.html | 52 +++--- website/testcases_ch11.html | 52 +++--- website/testcases_ch12.html | 52 +++--- website/testcases_ch13.html | 52 +++--- website/testcases_ch14.html | 52 +++--- website/testcases_ch15.html | 52 +++--- website/testcases_intl402.html | 65 ++++--- 22 files changed, 603 insertions(+), 381 deletions(-) delete mode 100644 website/images/ecmascriptlogo.png delete mode 100644 website/images/logo.png create mode 100644 website/metadata/ecma-402-toc.xml diff --git a/console/harness/helper.js b/console/harness/helper.js index d44f3c3292..75a6b93ba2 100644 --- a/console/harness/helper.js +++ b/console/harness/helper.js @@ -13,13 +13,13 @@ function Presenter() { table, backLink, - globalSection = new Section(null, "0", "ECMA-262"), + globalSection = new Section(null, "0", STANDARD), currentSection = globalSection, tests = {}, totalTests = 0; var progressBar; - TOCFILEPATH = "metadata/ecma-262-toc.xml"; + TOCFILEPATH = "metadata/" + STANDARD.toLowerCase() + "-toc.xml"; //**INTERFACE**************************************************************** /* Updates progress with the given test, which should have its results in it as well. */ this.addTestResult = function(test) { diff --git a/test/harness/helper.js b/test/harness/helper.js index d44f3c3292..75a6b93ba2 100644 --- a/test/harness/helper.js +++ b/test/harness/helper.js @@ -13,13 +13,13 @@ function Presenter() { table, backLink, - globalSection = new Section(null, "0", "ECMA-262"), + globalSection = new Section(null, "0", STANDARD), currentSection = globalSection, tests = {}, totalTests = 0; var progressBar; - TOCFILEPATH = "metadata/ecma-262-toc.xml"; + TOCFILEPATH = "metadata/" + STANDARD.toLowerCase() + "-toc.xml"; //**INTERFACE**************************************************************** /* Updates progress with the given test, which should have its results in it as well. */ this.addTestResult = function(test) { diff --git a/tools/packaging/templates/runner.bestPractice.html b/tools/packaging/templates/runner.bestPractice.html index 0dd958ea6d..9f65117480 100644 --- a/tools/packaging/templates/runner.bestPractice.html +++ b/tools/packaging/templates/runner.bestPractice.html @@ -1,4 +1,4 @@ - + @@ -6,6 +6,7 @@ @@ -13,7 +14,7 @@ - -ECMAScript Test262 Best Practices +ECMAScript Best Practices – test262 -
+
@@ -44,12 +45,10 @@
- -
-

ecmascript test262 Best Practices

- + +
+

ECMAScript Best Practices test262 + ECMAScript.org

- Test Suite Ver.:  | Test Suite Date: + Test suite version:  | Test suite date:
-
Total Tests:
+
Total tests:
Passed: | Failed: | - Failed To Load: + Failed to load:
@@ -135,7 +134,7 @@
Test results will be displayed after the tests are executed using the Run page.
- Test Suite Ver.:  | Test Suite Date: + Test suite version:  | Test suite date: