File tree Expand file tree Collapse file tree 1 file changed +2
-36
lines changed
test/com/google/javascript/jscomp Expand file tree Collapse file tree 1 file changed +2
-36
lines changed Original file line number Diff line number Diff line change 41
41
42
42
/**
43
43
* Unit tests for {@link ExpressionDecomposer}
44
+ *
45
+ * @author [email protected] (John Lenz)
44
46
*/
45
47
// Note: functions "foo" and "goo" are external functions in the helper.
46
48
@ RunWith (JUnit4 .class )
@@ -628,42 +630,6 @@ public void testExposeExpression6() {
628
630
"if (goo()) foo();" );
629
631
}
630
632
631
- @ Test
632
- public void testExposeDoubleAndExpression () {
633
- helperExposeExpression (
634
- "a = boo() && goo() && foo()" ,
635
- "foo" ,
636
- lines (
637
- "var temp$jscomp$0;" ,
638
- "if (temp$jscomp$0 = boo() && goo()) {" ,
639
- " temp$jscomp$0 = foo();" ,
640
- "}" ,
641
- "a = temp$jscomp$0;" ,
642
- "" ));
643
- }
644
-
645
- @ Test
646
- public void testExposeDoubleHookExpression () {
647
- helperExposeExpression (
648
- "a = boo() ? void 0 : goo() ? void 0 : foo()" ,
649
- "foo" ,
650
- lines (
651
- "var temp$jscomp$0;" ,
652
- "if (boo()) {" ,
653
- " temp$jscomp$0 = void 0;" ,
654
- "} else {" ,
655
- " var temp$jscomp$1;" ,
656
- " if (goo()) {" ,
657
- " temp$jscomp$1 = void 0;" ,
658
- " } else {" ,
659
- " temp$jscomp$1 = foo();" ,
660
- " }" ,
661
- " temp$jscomp$0 = temp$jscomp$1;" ,
662
- "}" ,
663
- "a = temp$jscomp$0;" ,
664
- "" ));
665
- }
666
-
667
633
@ Test
668
634
public void exposeExpressionNullishCoalesceNoResult () {
669
635
helperExposeExpression (
You can’t perform that action at this time.
0 commit comments