@Test public void testRemoveMultipleVariantConditionals() throws Exception { String input = "if( rwt.util.Variant.isSet( \"qx.debug\", \"on\" ) ) {\n}\n"; TokenList tokens = TestUtil.parse(input); QxCodeCleaner cleaner = new QxCodeCleaner(tokens); cleaner.cleanupQxCode(); assertEquals(0, tokens.size()); }
/** * Creates a container for the specified string. * * @param strings string * @return iterator */ protected static Value strings(final String... strings) { final TokenList tl = new TokenList(strings.length); for (final String s : strings) tl.add(s); return StrSeq.get(tl.finish()); }