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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java

Issue 11534013: Issue 7282. Report error for deprecated === and !== (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
index 65a57e17726a9dae267fd0eb3ad70e08dbb2020c..2c4c6ac2634d4d778899bafaa6331d3d5d6495fb 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
@@ -25,6 +25,24 @@ public class NegativeParserTest extends CompilerTestCase {
parseExpectErrors("get foo() {}", errEx(ParserErrorCode.DEPRECATED_GETTER, 1, 5, 3));
}
+ public void test_deprecatedStrictEQ() {
+ parseExpectErrors(makeCode(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "main() {",
+ " 1 === 2;",
+ "}",
+ ""), errEx(ParserErrorCode.DEPRECATED_STRICT_EQ, 3, 5, 3));
+ }
+
+ public void test_deprecatedStrictNE() {
+ parseExpectErrors(makeCode(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "main() {",
+ " 1 !== 2;",
+ "}",
+ ""), errEx(ParserErrorCode.DEPRECATED_STRICT_NE, 3, 5, 3));
+ }
+
public void test_deprecatedAbstract() {
parseExpectWarnings(makeCode(
"// filler filler filler filler filler filler filler filler filler filler",

Powered by Google App Engine
This is Rietveld 408576698