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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScannerTest.java

Issue 8956031: Fix for issue 908 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 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: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScannerTest.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScannerTest.java (revision 2639)
+++ editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScannerTest.java (working copy)
@@ -207,6 +207,17 @@
);
}
+ public void test_FastDartPartitionScanner_normalString_withEscapes() {
+ // class X { var s=' \$$foo '; }
+ assertPartitions( //
+ "class X {\nvar s=", "__dftl_partition_content_type", //
+ "' \\$", DART_STRING, //
+ "$foo", "__dftl_partition_content_type", //
+ " '", DART_STRING, //
+ ";\n}\n", "__dftl_partition_content_type" //
+ );
+ }
+
public void test_FastDartPartitionScanner_rawString_double() {
// class X { var s=@"test"; }
assertPartitions( //
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScanner.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698