From 6d66d5c376848228b0debb90007481cdd14ac051 Mon Sep 17 00:00:00 2001 From: Jeff Walden Date: Thu, 28 Jul 2016 09:22:15 -0700 Subject: [PATCH] Bug 1280362 - Remove the pointless stopTest function from shell.js. r=arai --HG-- extra : rebase_source : 71a9d20474545b139d548d05751db5cc6d27ca8e --- js/src/tests/ecma/ExecutionContexts/10.1.4-1.js | 1 - js/src/tests/ecma/ExecutionContexts/10.1.4-10.js | 1 - js/src/tests/ecma/ExecutionContexts/10.1.4-2.js | 1 - js/src/tests/ecma/ExecutionContexts/10.1.4-3.js | 1 - js/src/tests/ecma/ExecutionContexts/10.1.4-4.js | 1 - js/src/tests/ecma/ExecutionContexts/10.1.4-5.js | 1 - js/src/tests/ecma/ExecutionContexts/10.1.4-7.js | 1 - js/src/tests/ecma/ExecutionContexts/10.1.4-8.js | 1 - js/src/tests/ecma/ExecutionContexts/10.1.5-3.js | 1 - js/src/tests/ecma/LexicalConventions/7.3-1.js | 1 - js/src/tests/ecma/extensions/10.1.4-9.js | 1 - js/src/tests/shell.js | 13 ------------- 12 files changed, 24 deletions(-) diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.4-1.js b/js/src/tests/ecma/ExecutionContexts/10.1.4-1.js index 82d3ad3bcf4a..95e41bfce4e3 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.4-1.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.4-1.js @@ -68,7 +68,6 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.4-10.js b/js/src/tests/ecma/ExecutionContexts/10.1.4-10.js index 7fe5d13ffb93..ea6a4299b198 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.4-10.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.4-10.js @@ -66,6 +66,5 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.4-2.js b/js/src/tests/ecma/ExecutionContexts/10.1.4-2.js index 8fadad52e4ce..b2af20a9f9e5 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.4-2.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.4-2.js @@ -70,7 +70,6 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.4-3.js b/js/src/tests/ecma/ExecutionContexts/10.1.4-3.js index b8d8411a43b9..52326ea190f8 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.4-3.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.4-3.js @@ -68,7 +68,6 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.4-4.js b/js/src/tests/ecma/ExecutionContexts/10.1.4-4.js index bd7c49a48372..0d6636b77956 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.4-4.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.4-4.js @@ -70,7 +70,6 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.4-5.js b/js/src/tests/ecma/ExecutionContexts/10.1.4-5.js index b39400346503..aaa44609356e 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.4-5.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.4-5.js @@ -70,7 +70,6 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } function MyObject() { diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.4-7.js b/js/src/tests/ecma/ExecutionContexts/10.1.4-7.js index 2aa7ddd8ac34..5b3aa3adf6b1 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.4-7.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.4-7.js @@ -69,7 +69,6 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.4-8.js b/js/src/tests/ecma/ExecutionContexts/10.1.4-8.js index 602d432cb194..583708199ba1 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.4-8.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.4-8.js @@ -70,7 +70,6 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/ExecutionContexts/10.1.5-3.js b/js/src/tests/ecma/ExecutionContexts/10.1.5-3.js index d8fe0079bb56..20121f7a391e 100644 --- a/js/src/tests/ecma/ExecutionContexts/10.1.5-3.js +++ b/js/src/tests/ecma/ExecutionContexts/10.1.5-3.js @@ -91,6 +91,5 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/LexicalConventions/7.3-1.js b/js/src/tests/ecma/LexicalConventions/7.3-1.js index dff7153ffa50..0b080f66489a 100644 --- a/js/src/tests/ecma/LexicalConventions/7.3-1.js +++ b/js/src/tests/ecma/LexicalConventions/7.3-1.js @@ -53,6 +53,5 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : " ignored chars after line terminator of single-line comment"; } - stopTest(); return ( gTestcases ); } diff --git a/js/src/tests/ecma/extensions/10.1.4-9.js b/js/src/tests/ecma/extensions/10.1.4-9.js index a8c2435d730a..59367024aae0 100644 --- a/js/src/tests/ecma/extensions/10.1.4-9.js +++ b/js/src/tests/ecma/extensions/10.1.4-9.js @@ -68,7 +68,6 @@ function test() { gTestcases[gTc].reason += ( gTestcases[gTc].passed ) ? "" : "wrong value "; } - stopTest(); return ( gTestcases ); } function MyObject( n ) { diff --git a/js/src/tests/shell.js b/js/src/tests/shell.js index 6cb03e55a563..ebec425bc80f 100644 --- a/js/src/tests/shell.js +++ b/js/src/tests/shell.js @@ -806,7 +806,6 @@ function test() { print('test(): empty testcase for gTc = ' + gTc + ' ' + e); } } - stopTest(); return ( gTestcases ); } @@ -832,18 +831,6 @@ function writeHeaderToLog( string ) { /* end of print functions */ -/* - * When running in the shell, run the garbage collector after the - * test has completed. - */ - -function stopTest() { - var gc; - if ( gc != undefined ) { - gc(); - } -} - function jsTestDriverEnd() { // gDelayTestDriverEnd is used to