rem: indent() + "\tif (second >= 60) fail(\"timeout\");\n" + indent() + "\ttry { if (" + expression.toString() + ") break; } catch (Exception e) {}\n" + indent() + "\tThread.sleep(1000);\n" + indent() + "}\n"; 
add: "\tif (second >= 60) fail(\"timeout\");\n" + "\ttry { " + (expression.setup ? expression.setup() + " " : "") + "if (" + expression.toString() + ") break; } catch (Exception e) {}\n" + "\tThread.sleep(1000);\n" + "}\n"; 
context: function waitFor(expression) {	return "for (int second = 0;; second++) {\n" +		indent() + "\tif (second >= 60) fail(\"timeout\");\n" +		indent() + "\ttry { if (" + expression.toString() + ") break; } catch (Exception e) {}\n" +		indent() + "\tThread.sleep(1000);\n" +		indent() + "}\n";	//return "while (" + not(expression).toString() + ") { Thread.sleep(1000); }";}
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3428/4bfa7692cc2103f89695fba65b7284a7b4aeb230/java-rc.js/buggy/src/content/formats/java-rc.js