@@ -101,13 +101,6 @@ main() {
101101 it ("should parse grouped expressions" , () {
102102 checkAction ("(1 + 2) * 3" , "1 + 2 * 3" );
103103 });
104- it ("should ignore comments in expressions" , () {
105- checkAction ("a //comment" , "a" );
106- });
107- it ("should retain // in string literals" , () {
108- checkAction (
109- '''"http://www.google.com"''' , '''"http://www.google.com"''' );
110- });
111104 it ("should parse an empty string" , () {
112105 checkAction ("" );
113106 });
@@ -271,16 +264,6 @@ main() {
271264 it ("should parse conditional expression" , () {
272265 checkBinding ("a < b ? a : b" );
273266 });
274- it ("should ignore comments in bindings" , () {
275- checkBinding ("a //comment" , "a" );
276- });
277- it ("should retain // in string literals" , () {
278- checkBinding (
279- '''"http://www.google.com"''' , '''"http://www.google.com"''' );
280- });
281- it ("should retain // in : microsyntax" , () {
282- checkBinding ("one:a//b" , "one:a//b" );
283- });
284267 });
285268 describe ("parseTemplateBindings" , () {
286269 keys (List <dynamic > templateBindings) {
@@ -424,29 +407,6 @@ main() {
424407 \' bar\' + \' baz\' }}''' ,
425408 '''{{ "foo" + "bar" + "baz" }}''' );
426409 });
427- describe ("comments" , () {
428- it ("should ignore comments in interpolation expressions" , () {
429- checkInterpolation ("{{a //comment}}" , "{{ a }}" );
430- });
431- it ("should retain // in single quote strings" , () {
432- checkInterpolation ('''{{ \' http://www.google.com\' }}''' ,
433- '''{{ "http://www.google.com" }}''' );
434- });
435- it ("should retain // in double quote strings" , () {
436- checkInterpolation ('''{{ "http://www.google.com" }}''' ,
437- '''{{ "http://www.google.com" }}''' );
438- });
439- it ("should ignore comments after string literals" , () {
440- checkInterpolation ('''{{ "a//b" //comment }}''' , '''{{ "a//b" }}''' );
441- });
442- it ("should retain // in complex strings" , () {
443- checkInterpolation ('''{{"//a\' //b`//c`//d\' //e" //comment}}''' ,
444- '''{{ "//a\' //b`//c`//d\' //e" }}''' );
445- });
446- it ("should retain // in nested, unterminated strings" , () {
447- checkInterpolation ('''{{ "a\' b`" //comment}}''' , '''{{ "a\' b`" }}''' );
448- });
449- });
450410 });
451411 describe ("parseSimpleBinding" , () {
452412 it ("should parse a field access" , () {
0 commit comments