summaryrefslogtreecommitdiffstats
path: root/website
diff options
context:
space:
mode:
authorDavid Fugate <dfugate@microsoft.com>2012-02-22 11:53:29 -0800
committerDavid Fugate <dfugate@microsoft.com>2012-02-22 11:53:29 -0800
commite0d156d38cf03c0dde55743bef15a350f9be51b4 (patch)
tree02107c9eb436f8db89e0c49abc965007e6830146 /website
parent7b1eb0dce619c3f98333771ddc5761abae30141f (diff)
Implemented the following work items:
- https://bugs.ecmascript.org/show_bug.cgi?id=44 - https://bugs.ecmascript.org/show_bug.cgi?id=45
Diffstat (limited to 'website')
-rw-r--r--website/harness/helper.js40
-rw-r--r--website/json/default.json2
-rw-r--r--website/json/testcases_bestPractice.json2
-rw-r--r--website/json/testcases_ch07.json2
-rw-r--r--website/json/testcases_ch08.json2
-rw-r--r--website/json/testcases_ch09.json2
-rw-r--r--website/json/testcases_ch10.json2
-rw-r--r--website/json/testcases_ch11.json2
-rw-r--r--website/json/testcases_ch12.json2
-rw-r--r--website/json/testcases_ch13.json2
-rw-r--r--website/json/testcases_ch14.json2
-rw-r--r--website/json/testcases_ch15.json2
-rw-r--r--website/json/testcases_intl402.json2
13 files changed, 43 insertions, 21 deletions
diff --git a/website/harness/helper.js b/website/harness/helper.js
index ba150c432..1d4737657 100644
--- a/website/harness/helper.js
+++ b/website/harness/helper.js
@@ -18,6 +18,7 @@
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
/* Handles updating the page with information from the runner. */
function Presenter() {
var altStyle = '',
@@ -148,21 +149,23 @@ function Presenter() {
innerHTML = '';
innerHTML += '<b>Test </b>';
- innerHTML += '<b>' + test.id + '</b> <br /><br />';
+ innerHTML += '<b>' + test.id + '</b> <br /><br />\n';
if (test.description) {
innerHTML += '<b>Description</b>';
innerHTML += '<pre>' +
test.description.replace(/</g, '&lt;').replace(/>/g, '&gt;') +
- ' </pre>';
+ ' </pre>\n';
}
innerHTML += '<br /><br /><br /><b>Testcase</b>';
- innerHTML += '<pre>' + test.code + '</pre>';
-
- innerHTML += '<b>Path</b>';
- innerHTML += '<pre>' + test.path + ' </pre>&nbsp';
+ innerHTML += '<pre>' + test.code + '</pre>\n';
+ innerHTML += '<br /><b>Path</b>';
+ innerHTML += '<pre>' + test.path + '</pre>';
+ innerHTML += '<br /><a href="javascript:void(window.open(\'http://hg.ecmascript.org/tests/test262/file/tip/test/suite'
+ innerHTML += test.path.replace("TestCases", "") + '\'));">' + 'Hg source' + '</a> (might be newer than the testcase source shown above)\n'
+
popWnd.document.write(innerHTML);
}
@@ -172,14 +175,33 @@ function Presenter() {
popWnd = window.open("", "", "scrollbars=1, resizable=1"),
innerHTML = '';
+ var bugDetails = "";
+ bugDetails += "DESCRIPTION\n*Please insert your description here!*\n\n";
+ bugDetails += "------------------\n";
+ bugDetails += "TEST: " + test.path + "\n";
+ bugDetails += "SOURCE: http://hg.ecmascript.org/tests/test262/file/tip/test/suite" + test.path.replace("TestCases", "") + "\n";
+ bugDetails += "TEST SUITE DATE: " + date + "\n";
+ bugDetails += "PLATFORM: " + navigator.userAgent + "\n";
+ bugDetails += "ERROR: " + test.error + "\n\n";
+
+
+ var bugTemplate = 'https://bugs.ecmascript.org/enter_bug.cgi?product=Test262&amp;bug_severity=normal&amp;component=Tests&amp;short_desc=';
+ bugTemplate += encodeURIComponent('Invalid test? ' + test.id) + "&amp;comment=";
+ bugTemplate += encodeURIComponent(bugDetails);
+
innerHTML += '<b>Test </b>';
- innerHTML += '<b>' + test.id + '</b> <br /><br />';
+ innerHTML += '<b>' + test.id + '</b> <br /><br />\n';
innerHTML += '<b>Failure</b>';
- innerHTML += '<pre>' + test.error + '</pre>';
+ innerHTML += '<pre>' + test.error + '</pre>\n';
innerHTML += '<br /><br /><b>Testcase</b>';
- innerHTML += '<pre>' + test.code + '</pre>';
+ innerHTML += '<pre>' + test.code + '</pre>\n';
+
+ innerHTML += '<br /><br /><b>Broken test?</b>';
+ innerHTML += '<p>If you have reason to believe the JavaScript engine being tested<br />\n';
+ innerHTML += 'is actually OK and there\'s instead something wrong with the test<br />\n';
+ innerHTML += 'itself, please <a href="' + bugTemplate + '" onclick="window.moveTo(0,0);window.resizeTo(screen.width, screen.height);">file a bug.</a></p>\n'
popWnd.document.write(innerHTML);
}
diff --git a/website/json/default.json b/website/json/default.json
index f6a753404..999d294a0 100644
--- a/website/json/default.json
+++ b/website/json/default.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":11181,"testSuite":["json/ch07.json","json/ch08.json","json/ch09.json","json/ch10.json","json/ch11.json","json/ch12.json","json/ch13.json","json/ch14.json","json/ch15.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":11181,"testSuite":["json/ch07.json","json/ch08.json","json/ch09.json","json/ch10.json","json/ch11.json","json/ch12.json","json/ch13.json","json/ch14.json","json/ch15.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_bestPractice.json b/website/json/testcases_bestPractice.json
index 5cced1806..b954713a5 100644
--- a/website/json/testcases_bestPractice.json
+++ b/website/json/testcases_bestPractice.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":13,"testSuite":["json/bestPractice.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":13,"testSuite":["json/bestPractice.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch07.json b/website/json/testcases_ch07.json
index c4fa56d43..332b87cfb 100644
--- a/website/json/testcases_ch07.json
+++ b/website/json/testcases_ch07.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":716,"testSuite":["json/ch07.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":716,"testSuite":["json/ch07.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch08.json b/website/json/testcases_ch08.json
index c5cda4ece..b6baf7bd3 100644
--- a/website/json/testcases_ch08.json
+++ b/website/json/testcases_ch08.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":124,"testSuite":["json/ch08.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":124,"testSuite":["json/ch08.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch09.json b/website/json/testcases_ch09.json
index 0b37d75fb..bd44efc4d 100644
--- a/website/json/testcases_ch09.json
+++ b/website/json/testcases_ch09.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":128,"testSuite":["json/ch09.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":128,"testSuite":["json/ch09.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch10.json b/website/json/testcases_ch10.json
index 72bb7cddc..5ec864104 100644
--- a/website/json/testcases_ch10.json
+++ b/website/json/testcases_ch10.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":184,"testSuite":["json/ch10.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":184,"testSuite":["json/ch10.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch11.json b/website/json/testcases_ch11.json
index caab4e97f..838f7dabe 100644
--- a/website/json/testcases_ch11.json
+++ b/website/json/testcases_ch11.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":1310,"testSuite":["json/ch11.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":1310,"testSuite":["json/ch11.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch12.json b/website/json/testcases_ch12.json
index f610111f1..ab9fc68da 100644
--- a/website/json/testcases_ch12.json
+++ b/website/json/testcases_ch12.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":525,"testSuite":["json/ch12.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":525,"testSuite":["json/ch12.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch13.json b/website/json/testcases_ch13.json
index 4d22f498d..6def6ef88 100644
--- a/website/json/testcases_ch13.json
+++ b/website/json/testcases_ch13.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":200,"testSuite":["json/ch13.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":200,"testSuite":["json/ch13.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch14.json b/website/json/testcases_ch14.json
index 3ad3734e8..57668db16 100644
--- a/website/json/testcases_ch14.json
+++ b/website/json/testcases_ch14.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":24,"testSuite":["json/ch14.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":24,"testSuite":["json/ch14.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_ch15.json b/website/json/testcases_ch15.json
index e742c8653..ed08b140b 100644
--- a/website/json/testcases_ch15.json
+++ b/website/json/testcases_ch15.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":7970,"testSuite":["json/ch15.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":7970,"testSuite":["json/ch15.json"],"version":"ES5.1"} \ No newline at end of file
diff --git a/website/json/testcases_intl402.json b/website/json/testcases_intl402.json
index e1ec734cc..b4479fdc1 100644
--- a/website/json/testcases_intl402.json
+++ b/website/json/testcases_intl402.json
@@ -1 +1 @@
-{"date":"2012-02-08","numTests":1,"testSuite":["json/intl402.json"],"version":"ES5.1"} \ No newline at end of file
+{"date":"2012-02-22","numTests":1,"testSuite":["json/intl402.json"],"version":"ES5.1"} \ No newline at end of file