Chromium Code Reviews

Unified Diff: test/webkit/no-semi-insertion-at-end-of-script.js

Issue 18068003: Migrated several tests from blink to V8 repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: test/webkit/no-semi-insertion-at-end-of-script.js
diff --git a/test/webkit/resources/standalone-post.js b/test/webkit/no-semi-insertion-at-end-of-script.js
similarity index 90%
copy from test/webkit/resources/standalone-post.js
copy to test/webkit/no-semi-insertion-at-end-of-script.js
index d157e78bfa084329e2ec1a9b7d6ad456e904c152..8af4eac6bc49f90889434bed23522a3ec2fce922 100644
--- a/test/webkit/resources/standalone-post.js
+++ b/test/webkit/no-semi-insertion-at-end-of-script.js
@@ -21,6 +21,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-wasPostTestScriptParsed = true;
+description("Test to make sure we don't automatically insert semicolons at the end of a script.");
-finishJSTest();
+shouldThrow("if (0)");
+shouldThrow("eval('if (0)')");
« no previous file with comments | « test/webkit/new-array-double-with-holes-expected.txt ('k') | test/webkit/no-semi-insertion-at-end-of-script-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine