diff --git a/test/harness/helper.js b/test/harness/helper.js index ba150c4327f312f2c94c70b64383651ee7a33935..1d4737657e0aa03730641768f8df0f9066c5eda7 100644 --- a/test/harness/helper.js +++ b/test/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, '<').replace(/>/g, '>') + - ' </pre>'; + ' </pre>\n'; } innerHTML += '<br /><br /><br /><b>Testcase</b>'; - innerHTML += '<pre>' + test.code + '</pre>'; - - innerHTML += '<b>Path</b>'; - innerHTML += '<pre>' + test.path + ' </pre> '; + 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&bug_severity=normal&component=Tests&short_desc='; + bugTemplate += encodeURIComponent('Invalid test? ' + test.id) + "&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/harness/helper.js b/website/harness/helper.js index ba150c4327f312f2c94c70b64383651ee7a33935..1d4737657e0aa03730641768f8df0f9066c5eda7 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, '<').replace(/>/g, '>') + - ' </pre>'; + ' </pre>\n'; } innerHTML += '<br /><br /><br /><b>Testcase</b>'; - innerHTML += '<pre>' + test.code + '</pre>'; - - innerHTML += '<b>Path</b>'; - innerHTML += '<pre>' + test.path + ' </pre> '; + 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&bug_severity=normal&component=Tests&short_desc='; + bugTemplate += encodeURIComponent('Invalid test? ' + test.id) + "&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 f6a753404a449f713a30011c1a9ef91516d0caad..999d294a01b7fc818d0b02dab375661ffcd78fb0 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 5cced180661d53d312991ff3c5c759b3c230077b..b954713a551b22e2e6c4d603279c5d7f11c94285 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 c4fa56d43c4e01aa0f1463cf656466ffce18fdd7..332b87cfb81ef16071a8e25ad5811c8ba11df2c6 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 c5cda4ece615cd8b4d287ec6b0d43df50be884d2..b6baf7bd3b1fb63bb69759606d41ac38e7cc6a88 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 0b37d75fbc89c69b260838a126f77ca483227b57..bd44efc4dac1c1ea5f2b98431219e55185d5f2e5 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 72bb7cddcfbe728ac0c68c048e4d43f14776d467..5ec86410474f93192be05eceadcb2a0963dfc518 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 caab4e97f45443a8a20fa3159a3891a813e2e3a5..838f7dabe3edb889a5c39161348f7c6230309325 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 f610111f18550b1ef317f768f1a04f7a020c76bc..ab9fc68dafa20ff26223207d8ff8f56aa79f0a5b 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 4d22f498d83f1ae636f8b2513e07bb8633b8ba8c..6def6ef889af133383256e692cf70d5d9fbc0966 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 3ad3734e871ceb822b7579966d3aca8d0a761e78..57668db16cd1573b32c5cbf5c9ee7de7707ce4e8 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 e742c86530c43242064a2c0da3665c61b55394dd..ed08b140b9d0e3ace65eaf32d1b4e7abe3a8ebfe 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 e1ec734cca51c921e52b066f65f743a9dbf1fa87..b4479fdc16485d7eafb7da10039e42ca642bffa2 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