rem: assertEquals('assertEquals(new String[] {"", "abc", "ab,c"}, selenium.getSelectOptions("theSelect"));', nextCommand()); 
add: assertEquals('String[] array1 = selenium.getSelectOptions("theSelect");\n' + 'assertEquals(3, array1.length);\n' + 'assertEquals("", array1[0]);\n' + 'assertEquals("abc", array1[1]);\n' + 'assertEquals("ab,c", array1[2]);', nextCommand()); 
context: function testJavaRCFormat() {	var format = this.formats.findFormat("java-rc");	var f = format.getFormatter();	this.formatter = f;	assertEquals('assertTrue(selenium.isTextPresent("hello"));', nextCommand());	assertEquals('assertFalse(selenium.isTextPresent("hello"));', nextCommand());	assertEquals('boolean abc = selenium.isTextPresent("test");', nextCommand());	assertTrue(nextCommand().indexOf('if (selenium.isTextPresent("test")) break; }') >= 0);	assertTrue(nextCommand().indexOf('if (!selenium.isTextPresent("test")) break; }') >= 0);	assertEquals('assertEquals("def", selenium.getText("abc"));', nextCommand());	assertEquals('assertEquals("abc", selenium.getLocation());', nextCommand());	assertEquals('assertNotEquals("abc", selenium.getLocation());', nextCommand());	assertEquals('selenium.type("theText", selenium.getEval("\'abc\'"));', nextCommand());	assertEquals('assertEquals(new String[] {"", "abc", "ab,c"}, selenium.getSelectOptions("theSelect"));', nextCommand());	assertEquals('assertNotEquals("abc", selenium.getLocation());', nextCommand());	assertEquals('String def = selenium.getText("abc");', nextCommand());	assertTrue(nextCommand().indexOf('if ("def".equals(selenium.getText("abc"))) break; }') >= 0);	assertTrue(nextCommand().indexOf('if (!Pattern.compile("foo.*").matcher(selenium.getValue("abc")).find()) break; }') >= 0);	assertTrue(nextCommand().indexOf('if (!"def".equals(selenium.getText("abc"))) break; }') >= 0);	assertEquals('selenium.open("http://www.google.com/");', nextCommand());	assertEquals('selenium.waitForPageToLoad("30000");', nextCommand());	assertEquals('Thread.sleep(1000);', nextCommand());	assertEquals("// line 1\n// line 2", f.formatComment(this.commands.shift()));}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/4bfa7692cc2103f89695fba65b7284a7b4aeb230/format-tests.js/clean/src/content/tests/unit/format-tests.js