Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: LayoutTests/fast/js/script-tests/reserved-words-strict.js

Issue 20867002: Remove old tests that have been migrated to the v8 repo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unused script-tests as well Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/js/script-tests/reserved-words-strict.js
diff --git a/LayoutTests/fast/js/script-tests/reserved-words-strict.js b/LayoutTests/fast/js/script-tests/reserved-words-strict.js
deleted file mode 100644
index f852e22b393341a8d150c9d24cce838a44571013..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/script-tests/reserved-words-strict.js
+++ /dev/null
@@ -1,65 +0,0 @@
-function isReserved(word)
-{
- try {
- eval("\"use strict\";var " + word + ";");
- return false;
- } catch (e) {
- var expectedError = "Use of reserved word '" + word + "' in strict mode";
- if (expectedError == e.message)
- return true;
- else
- return false;
- }
-}
-
-var reservedWords = [
- "implements",
- "let",
- "private",
- "public",
- "yield",
- "interface",
- "package",
- "protected",
- "static"
-];
-
-var unreservedWords = [
- "abstract",
- "boolean",
- "byte",
- "char",
- "double",
- "final",
- "float",
- "goto",
- "int",
- "long",
- "native",
- "short",
- "synchronized",
- "throws",
- "transient",
- "volatile"
-];
-
-description(
-"This file checks which ECMAScript 3 keywords are treated as reserved words in strict mode."
-);
-
-reservedWords.sort();
-unreservedWords.sort();
-
-debug("SHOULD BE RESERVED:");
-for (var p in reservedWords) {
- shouldBeTrue("isReserved('" + reservedWords[p] + "')");
-}
-
-debug("");
-
-debug("SHOULD NOT BE RESERVED:");
-for (var p in unreservedWords) {
- shouldBeFalse("isReserved('" + unreservedWords[p] + "')");
-}
-
-debug("");

Powered by Google App Engine
This is Rietveld 408576698