rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
testSuiteComplete();
isTestSuiteComplete();
function runNextTest() { if (!runAllTests) return; suiteTable = getIframeDocument(getSuiteFrame()).getElementsByTagName("table")[0]; updateSuiteWithResultOfPreviousTest(); currentRowInSuite++; // If we are done with all of the tests, set the title bar as pass or fail if (currentRowInSuite >= suiteTable.rows.length) { testSuiteComplete(); } else { startCurrentTestCase(); }}
debugMode = runOptions.getDebugMode();
debugMode = runOptions.isDebugMode();
function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; } } else { proxyInjectionMode = true; testAppWindow = window; } selenium = Selenium.createForWindow(testAppWindow); if (!debugMode) { debugMode = runOptions.getDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; selenium.browserbot._modifyWindow(testAppWindow); } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
} else {
} else if ($('myiframe') != null) {
function runSeleniumTest() { runOptions = new RunOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else { testAppWindow = $('myiframe').contentWindow; } if (testAppWindow == null) { proxyInjectionMode = true; testAppWindow = window; } else { proxyInjectionMode = false; } selenium = Selenium.createForWindow(testAppWindow); if (!debugMode) { debugMode = runOptions.getDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
runOptions = new SeleneseRunnerOptions();
runOptions = new RemoteRunnerOptions();
function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; } } else { proxyInjectionMode = true; testAppWindow = window; } selenium = Selenium.createForWindow(testAppWindow, proxyInjectionMode); if (!debugMode) { debugMode = runOptions.isDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; selenium.browserbot._modifyWindow(testAppWindow); } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
currentTest = new SeleneseRunner(commandFactory);
currentTest = new RemoteRunner(commandFactory);
function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; } } else { proxyInjectionMode = true; testAppWindow = window; } selenium = Selenium.createForWindow(testAppWindow, proxyInjectionMode); if (!debugMode) { debugMode = runOptions.isDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; selenium.browserbot._modifyWindow(testAppWindow); } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
testAppWindow = $('myiframe').contentWindow;
var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; }
function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { testAppWindow = $('myiframe').contentWindow; } else { proxyInjectionMode = true; testAppWindow = window; } selenium = Selenium.createForWindow(testAppWindow); if (!debugMode) { debugMode = runOptions.getDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; selenium.browserbot._modifyWindow(testAppWindow); } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; }
function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); restoreSeleniumState(); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
proxyInjectionMode = true;
function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); restoreSeleniumState(); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
proxyInjectionMode = false;
function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); restoreSeleniumState(); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
if (debugMode=="false") { debugMode = false; }
function runTest() { debugMode = getQueryVariable("debugMode"); var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
restoreSeleniumState();
function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); restoreSeleniumState(); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
SafariPageBot = function(pageWindow) {
var SafariPageBot = function(pageWindow) {
SafariPageBot = function(pageWindow) { PageBot.call(this, pageWindow);};
return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' );
return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' ).replace( /\ option\ /g, '" option "' );
function sanitize_input( str ){ return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' );}
DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')');
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB)"); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ")"); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
STDOUT.WriteLine("Enabling sapi/" + sapiname);
STDOUT.WriteLine("Enabling SAPI " + configure_module_dirname);
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
ADD_SOURCES("sapi/" + sapiname, file_list, sapiname);
ADD_SOURCES(configure_module_dirname, file_list, sapiname);
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname);
resname = generate_version_info_resource(makefiletarget, configure_module_dirname);
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete");
MFO.WriteLine("\t@echo SAPI " + configure_module_dirname + "/" + sapiname + " build complete");
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
if(PHP_VCI = "yes" || PHP_VCO == "yes") { ldflags += " /PGD:$(BUILD_DIR)\\"+makefiletarget+".pgd"; }
function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; var ld; if (typeof(obj_dir) == "undefined") { sapiname_for_printing = configure_module_dirname; } else { sapiname_for_printing = configure_module_dirname + " (via " + obj_dir + ")"; } STDOUT.WriteLine("Enabling SAPI " + sapiname_for_printing); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES(configure_module_dirname, file_list, sapiname, obj_dir); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, configure_module_dirname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname_for_printing + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(DEPS_" + SAPI + ") $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else if (makefiletarget.match(new RegExp("\\.lib$"))) { ldflags = "$(LDFLAGS)"; ld = "$(MAKE_LIB)"; } else { ldflags = "$(LDFLAGS)"; } if(PHP_VCI = "yes" || PHP_VCO == "yes") { ldflags += " /PGD:$(BUILD_DIR)\\"+makefiletarget+".pgd"; } if (ld) { MFO.WriteLine("\t" + ld + " /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); } else { ld = "@$(CC)"; MFO.WriteLine("\t" + ld + " /nologo " + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname + " /link /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(LDFLAGS_" + SAPI + ")"); } DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); if (configure_module_dirname.match("pecl")) { ADD_FLAG("PECL_TARGETS", makefiletarget); } else { ADD_FLAG("SAPI_TARGETS", makefiletarget); } MFO.WriteBlankLines(1);}
function satFinder()
function satFinder(transponder)
function satFinder(){ NewWindow("/satFinder", "satfind", "170", "150", "no");}
NewWindow("/satFinder", "satfind", "170", "150", "no");
NewWindow("/satFinder?" + transponder, "satfind", "170", "150", "no");
function satFinder(){ NewWindow("/satFinder", "satfind", "170", "150", "no");}
this.branch.deleteBranch("formats");
save: function(options, prop_name) { if (prop_name) { this.setCharPref(prop_name, options[prop_name]); } else { var name; for (name in options) { this.setCharPref(name, options[name]); } } }
var configStream = getWriteStream(getScriptFile("config.xml"));
var configStream = getWriteStream(this.configFile);
this.save = function() { var doc = document.implementation.createDocument("", "UserScriptConfig", null); for (var i = 0, scriptObj = null; (scriptObj = this.scripts[i]); i++) { var scriptNode = doc.createElement("Script"); for (var j = 0; j < scriptObj.includes.length; j++) { var includeNode = doc.createElement("Include"); includeNode.appendChild(doc.createTextNode(scriptObj.includes[j])); scriptNode.appendChild(doc.createTextNode("\n\t\t")); scriptNode.appendChild(includeNode); } for (var j = 0; j < scriptObj.excludes.length; j++) { var excludeNode = doc.createElement("Exclude"); excludeNode.appendChild(doc.createTextNode(scriptObj.excludes[j])); scriptNode.appendChild(doc.createTextNode("\n\t\t")); scriptNode.appendChild(excludeNode); } scriptNode.appendChild(doc.createTextNode("\n\t")); scriptNode.setAttribute("filename", scriptObj.filename); scriptNode.setAttribute("name", scriptObj.name); scriptNode.setAttribute("namespace", scriptObj.namespace); scriptNode.setAttribute("description", scriptObj.description); scriptNode.setAttribute("enabled", scriptObj.enabled); doc.firstChild.appendChild(doc.createTextNode("\n\t")); doc.firstChild.appendChild(scriptNode); } doc.firstChild.appendChild(doc.createTextNode("\n")) var configStream = getWriteStream(getScriptFile("config.xml")); new XMLSerializer().serializeToStream(doc, configStream, "utf-8"); configStream.close(); }
BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID);
function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); }
dataEle.setAttribute("id",BX_DocumentID);
function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); }
mimetype: "text/plain",
mimetype: "text/html",
function saveAttachment(obj, formid, noanim){var bindArgs = { url: "/exec/editattachments/" + obj, content: {ajax: "1"}, method: "POST", mimetype: "text/plain", error: function(type, errObj){ }, load: function(type, data, evt){ // handle successful response here var d = document.getElementById("popup_contents"); alert(data); if(!d) return; else d.innerHTML = data.toString(); } }; if(formid) { var form = document.getElementById(formid); if(form) bindArgs.formNode = form; } // dispatch the request var requestObj = dojo.io.bind(bindArgs); }
alert(data);
function saveAttachment(obj, formid, noanim){var bindArgs = { url: "/exec/editattachments/" + obj, content: {ajax: "1"}, method: "POST", mimetype: "text/plain", error: function(type, errObj){ }, load: function(type, data, evt){ // handle successful response here var d = document.getElementById("popup_contents"); alert(data); if(!d) return; else d.innerHTML = data.toString(); } }; if(formid) { var form = document.getElementById(formid); if(form) bindArgs.formNode = form; } // dispatch the request var requestObj = dojo.io.bind(bindArgs); }
var body = editor.query(' var actionIndex = editor.query('
var body = editor.query('. var actionIndex = editor.query('.
function saveBreakpointOnLine(lineNum){ var file = files[currentFile]; var breakpoint = file.breakpoints[lineNum]; row = file.element.firstChild.childNodes.item(lineNum - 1); var editor = breakpoint.editor; var body = editor.query('//div[@class="condition"]').innerText; var actionIndex = editor.query('//select[@class="editorDropdown"]').selectedIndex; if (body.length == 0) breakpoint.value = "break"; else if (body.indexOf("return") != -1) breakpoint.value = "__drosera_breakpoint_conditional_func = function() {" + body + "}; __drosera_breakpoint_conditional_func();"; else breakpoint.value = "__drosera_breakpoint_conditional_func = function() { return((" + body + ")); }; __drosera_breakpoint_conditional_func();";}
debug("saveBuffersRecoveryPoint: start");
debug.print("saveBuffersRecoveryPoint: start");
function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRecoveryPoint: null buffersNode"); return; } setCookie(g_cq_buffers_cookie, buffersNode.innerHTML); debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));}
debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML);
debug.print("saveBuffersRecoveryPoint: " + buffersNode); debug.print("saveBuffersRecoveryPoint: " + buffersNode.innerHTML);
function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRecoveryPoint: null buffersNode"); return; } setCookie(g_cq_buffers_cookie, buffersNode.innerHTML); debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));}
debug("saveBuffersRecoveryPoint: null buffersNode");
debug.print("saveBuffersRecoveryPoint: null buffersNode");
function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRecoveryPoint: null buffersNode"); return; } setCookie(g_cq_buffers_cookie, buffersNode.innerHTML); debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));}
debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));
debug.print("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));
function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRecoveryPoint: null buffersNode"); return; } setCookie(g_cq_buffers_cookie, buffersNode.innerHTML); debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));}
this.view.syncModel();
function saveNewTestCase() { if (this.testManager.saveAsNew(this.testCase)) { //document.getElementById("filename").value = this.testCase.filename; updateTitle(); }}
var w = SeleniumIDE.getRecorderWindow(); if (w != null) { w.setOptions(options); }
SeleniumIDE.Loader.getEditors().forEach(function(editor) { editor.setOptions(options); });
function saveOptions() { var options = this.options; var name; for (name in options) { var e = document.getElementById(name); if (e != null) { options[name] = e.checked != undefined ? e.checked.toString() : e.value; } } var w = SeleniumIDE.getRecorderWindow(); if (w != null) { w.setOptions(options); } optionsManager.save(options); return true;}
submitform('saveorder');
function saveorder( n ) { checkAll_button( n ); submitform('saveorder');}
debug("saveQueryHistory: " + i);
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query);
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16));
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length);
if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length);
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
debug("saveQueryHistory: " + i + " matched!");
debug.print("saveQueryHistory: " + i + " matched!");
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
newItem.appendChild(document.createTextNode(query));
var queryNode = document.createElement("span"); queryNode.appendChild(document.createTextNode(query));
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
newItem.onclick = function() {
queryNode.onclick = function() {
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
newItem.title = "Click here to copy this query into the current buffer.";
queryNode.title = "Click here to copy this query into the current buffer."; newItem.appendChild(queryNode);
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false;
function saveQueryHistory(query, checkFlag) { if (query == null || query == "") { return; } var normalizedQuery = normalizeSpace(query); if (normalizedQuery == null || normalizedQuery == "") { return; }
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16)); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug.print("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug.print("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); var queryNode = document.createElement("span"); queryNode.appendChild(document.createTextNode(query)); // onclick, copy to current textarea queryNode.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip queryNode.title = "Click here to copy this query into the current buffer."; newItem.appendChild(queryNode); // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16));
debug.print("saveQueryHistory: " + ", check=" + checkFlag + ": " + normalizedQuery.substr(0, 16));
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16)); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug.print("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug.print("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); var queryNode = document.createElement("span"); queryNode.appendChild(document.createTextNode(query)); // onclick, copy to current textarea queryNode.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip queryNode.title = "Click here to copy this query into the current buffer."; newItem.appendChild(queryNode); // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
var normalizedQuery = normalize(query); if (query == null || query == "") { return; }
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16)); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug.print("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug.print("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); var queryNode = document.createElement("span"); queryNode.appendChild(document.createTextNode(query)); // onclick, copy to current textarea queryNode.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip queryNode.title = "Click here to copy this query into the current buffer."; newItem.appendChild(queryNode); // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
if (normalize(listItems[i].childNodes[0].nodeValue)
if (normalizeSpace(listItems[i].firstChild.firstChild.nodeValue)
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16)); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug.print("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug.print("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); var queryNode = document.createElement("span"); queryNode.appendChild(document.createTextNode(query)); // onclick, copy to current textarea queryNode.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip queryNode.title = "Click here to copy this query into the current buffer."; newItem.appendChild(queryNode); // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
if (listItems && listItems[0] && (!appendFlag)) {
if (listItems && listItems[0]) {
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16)); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug.print("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug.print("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); var queryNode = document.createElement("span"); queryNode.appendChild(document.createTextNode(query)); // onclick, copy to current textarea queryNode.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip queryNode.title = "Click here to copy this query into the current buffer."; newItem.appendChild(queryNode); // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
debug.print("saveQueryHistory: appending " + newItem + " to " + listNode);
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16)); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug.print("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug.print("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); var queryNode = document.createElement("span"); queryNode.appendChild(document.createTextNode(query)); // onclick, copy to current textarea queryNode.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip queryNode.title = "Click here to copy this query into the current buffer."; newItem.appendChild(queryNode); // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
this.view.syncModel();
function saveTestCase() { if (this.testManager.save(this.testCase)) { //document.getElementById("filename").value = this.testCase.filename; return true; } else { return false; }}
function sc_caaadr(p) { return p.car.car.car.cdr; }
function sc_caaadr(p) { return p.cdr.car.car.car; }
function sc_caaadr(p) { return p.car.car.car.cdr; } /// export
function sc_caadar(p) { return p.car.car.cdr.car; }
function sc_caadar(p) { return p.car.cdr.car.car; }
function sc_caadar(p) { return p.car.car.cdr.car; } /// export
function sc_caaddr(p) { return p.car.car.cdr.cdr; }
function sc_caaddr(p) { return p.cdr.cdr.car.car; }
function sc_caaddr(p) { return p.car.car.cdr.cdr; } /// export
function sc_caadr(p) { return p.car.car.cdr; }
function sc_caadr(p) { return p.cdr.car.car; }
function sc_caadr(p) { return p.car.car.cdr; } /// export
function sc_cadaar(p) { return p.car.cdr.car.car; }
function sc_cadaar(p) { return p.car.car.cdr.car; }
function sc_cadaar(p) { return p.car.cdr.car.car; } /// export
function sc_cadadr(p) { return p.car.cdr.car.cdr; }
function sc_cadadr(p) { return p.cdr.car.cdr.car; }
function sc_cadadr(p) { return p.car.cdr.car.cdr; } /// export
function sc_cadddr(p) { return p.car.cdr.cdr.cdr; }
function sc_cadddr(p) { return p.cdr.cdr.cdr.car; }
function sc_cadddr(p) { return p.car.cdr.cdr.cdr; } /// export
function sc_caddr(p) { return p.car.cdr.cdr; }
function sc_caddr(p) { return p.cdr.cdr.car; }
function sc_caddr(p) { return p.car.cdr.cdr; } /// export
function sc_cadr(p) { return p.car.cdr; }
function sc_cadr(p) { return p.cdr.car; }
function sc_cadr(p) { return p.car.cdr; } /// export
return;
return undefined;
function sc_callCcRestart(exc) { while (true) { try { exc.root(); if (sc_CALLCC_STORAGE.firstCall) { return sc_CALLCC_STORAGE.firstCall(); } return; } catch (e) { if (e instanceof sc_CallCcException) exc = e; else throw e; } }}
return undefined;
function sc_callCcRestart(exc) { while (true) { try { exc.root(); if (sc_CALLCC_STORAGE.firstCall) { return sc_CALLCC_STORAGE.firstCall(); } return; } catch (e) { if (e instanceof sc_CallCcException) exc = e; else throw e; } }}
consumer.apply(null, producer());
var produced = producer(); if (produced instanceof sc_Values) return consumer.apply(null, produced.values); else return consumer(produced);
function sc_callWithValues(producer, consumer) { /// export consumer.apply(null, producer());}
function sc_cdaaar(p) { return p.cdr.car.car.car; }
function sc_cdaaar(p) { return p.car.car.car.cdr; }
function sc_cdaaar(p) { return p.cdr.car.car.car; } /// export
function sc_cdaar(p) { return p.cdr.car.car; }
function sc_cdaar(p) { return p.car.car.cdr; }
function sc_cdaar(p) { return p.cdr.car.car; } /// export
function sc_cdadar(p) { return p.cdr.car.cdr.car; }
function sc_cdadar(p) { return p.car.cdr.car.cdr; }
function sc_cdadar(p) { return p.cdr.car.cdr.car; } /// export
function sc_cdaddr(p) { return p.cdr.car.cdr.cdr; }
function sc_cdaddr(p) { return p.cdr.cdr.car.cdr; }
function sc_cdaddr(p) { return p.cdr.car.cdr.cdr; } /// export
function sc_cdar(p) { return p.cdr.car; }
function sc_cdar(p) { return p.car.cdr; }
function sc_cdar(p) { return p.cdr.car; } /// export
function sc_cddaar(p) { return p.cdr.cdr.car.car; }
function sc_cddaar(p) { return p.car.car.cdr.cdr; }
function sc_cddaar(p) { return p.cdr.cdr.car.car; } /// export
function sc_cddadr(p) { return p.cdr.cdr.car.cdr; }
function sc_cddadr(p) { return p.cdr.car.cdr.cdr; }
function sc_cddadr(p) { return p.cdr.cdr.car.cdr; } /// export
function sc_cddar(p) { return p.cdr.cdr.car; }
function sc_cddar(p) { return p.car.cdr.cdr; }
function sc_cddar(p) { return p.cdr.cdr.car; } /// export
function sc_cdddar(p) { return p.cdr.cdr.cdr.car; }
function sc_cdddar(p) { return p.car.cdr.cdr.cdr; }
function sc_cdddar(p) { return p.cdr.cdr.cdr.car; } /// export
return undefined;
function sc_Char(c) { var cached = sc_Char.lazy[c]; if (cached) return cached; this.val = c; sc_Char.lazy[c] = this;}
p.close();
return p.close();
function sc_closeInputPort(p) { /// export p.close();}
p.close();
return p.close();
function sc_closeOutputPort(p) { /// export p.close();}
function sc_div(x, y) { if (y === undefined) return 1 / x; else return x / y;
function sc_div(x) { if (arguments.length === 1) return 1/x; else { var res = x; for (var i = 1; i < arguments.length; i++) res /= arguments[i]; return res; }
function sc_div(x, y) { /// export / /fl if (y === undefined) return 1 / x; else return x / y;}
return o.doDisplay(p);
o.doDisplay(p);
function sc_doDisplay(p, o) { if (o === null) p.appendJSString("()"); else if (o === true) p.appendJSString("#t"); else if (o === false) p.appendJSString("#f"); else if (o === undefined) p.appendJSString("#unspecified"); else return o.doDisplay(p);}
return o.doWrite(p);
o.doWrite(p);
function sc_doWrite(p, o) { if (o === null) p.appendJSString("()"); else if (o === true) p.appendJSString("#t"); else if (o === false) p.appendJSString("#f"); else if (o === undefined) p.appendJSString("#unspecified"); else return o.doWrite(p);}
function sc_dynamicWind(before thunk after) {
function sc_dynamicWind(before, thunk, after) {
function sc_dynamicWind(before thunk after) { /// export before(); var res = thunk(); after(); return res;}
var res = thunk(); after(); return res;
try { var res = thunk(); return res; } finally { after(); }
function sc_dynamicWind(before, thunk, after) { /// export before(); var res = thunk(); after(); return res;}
sc_print_immutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_immutable(arguments[i]); } throw "ERROR";
var t = sc_withOutputToString_mutable( function () { sc_print_immutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } }); throw t;
function sc_error_immutable() { /// export sc_print_immutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_immutable(arguments[i]); } throw "ERROR";}
sc_print_mutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } throw "ERROR";
var t = sc_withOutputToString_mutable( function () { sc_print_mutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } }); throw t;
function sc_error_mutable() { /// export sc_print_mutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } throw "ERROR";}
return res;
function sc_escapeWriteString(s) { var res = ""; var j = 0; for (i = 0; i < s.length; i++) { switch (s.charAt(i)) { case "\0": res += s.substring(j, i) + "\\0"; j = i + 1; break; case "\a": res += s.substring(j, i) + "\\a"; j = i + 1; break; case "\b": res += s.substring(j, i) + "\\b"; j = i + 1; break; case "\f": res += s.substring(j, i) + "\\f"; j = i + 1; break; case "\n": res += s.substring(j, i) + "\\n"; j = i + 1; break; case "\r": res += s.substring(j, i) + "\\r"; j = i + 1; break; case "\t": res += s.substring(j, i) + "\\t"; j = i + 1; break; case "\v": res += s.substring(j, i) + "\\v"; j = i + 1; break; case '"': res += s.substring(j, i) + '\\"'; j = i + 1; break; case "\\": res += s.substring(j, i) + "\\\\"; j = i + 1; break; default: if (s.charAt(i) < ' ' || s.charCodeAt(i) > 127) { /* non printable character and special chars */ res += s.substring(j, i) + "\\x" + charCodeAt(i).toString(16); j = i + 1; } // else just let i increase... } } res += s.substring(j, i);}
return undefined;
function sc_forEach(proc, l1, l2, l3) { /// export-higher if (l2 === undefined) return sc_forEach1(proc, l1); else if (l3 === undefined) return sc_forEach2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); while (l1 !== null) { for (var i = 0; i < nbApplyArgs; i++) { applyArgs[i] = arguments[i + 1].car; arguments[i + 1] = arguments[i + 1].cdr; } proc.apply(null, applyArgs); }}
function sc_forEach(proc, l1) { if (arguments.length == 2)
function sc_forEach(proc, l1, l2, l3) { if (l2 === undefined)
function sc_forEach(proc, l1) { /// export if (arguments.length == 2) return sc_forEach1(proc, l1); else if (arguments.length == 3) return sc_forEach2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); while (l1 !== null) { for (var i = 0; i < nbApplyArgs; i++) { applyArgs[i] = arguments[i + 1].car; arguments[i + 1] = arguments[i + 1].cdr; } proc.apply(null, applyArgs); }}
else if (arguments.length == 3)
else if (l3 === undefined)
function sc_forEach(proc, l1) { /// export if (arguments.length == 2) return sc_forEach1(proc, l1); else if (arguments.length == 3) return sc_forEach2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); while (l1 !== null) { for (var i = 0; i < nbApplyArgs; i++) { applyArgs[i] = arguments[i + 1].car; arguments[i + 1] = arguments[i + 1].cdr; } proc.apply(null, applyArgs); }}
return undefined;
function sc_hashtableForEach_callcc(ht, f) { /// export-higher var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { return sc_forEach_callcc(); } var l = null; for (var v in ht) { if (ht[v] instanceof sc_HashtableElement) l = new sc_Pair(ht[v], l); } sc_forEach_callcc(function(e) { f(e.key, e.val); }, l);}
while (rabbit != null) { if (sc_isPair(rabbit) && sc_isPair(rabbit.cdr)) {
while (true) { if (rabbit === null || (rabbit instanceof sc_Pair && rabbit.cdr === null)) return true; else if ((rabbit instanceof sc_Pair) && (rabbit.cdr instanceof sc_Pair)) {
function sc_isList(o) { /// export var rabbit; var turtle; var rabbit = o; var turtle = o; while (rabbit != null) { if (sc_isPair(rabbit) && sc_isPair(rabbit.cdr)) { rabbit = rabbit.cdr.cdr; turtle = turtle.cdr; if (rabbit === turtle) return false; // cycle } else return false; // not pair } return true;}
return true;
function sc_isList(o) { /// export var rabbit; var turtle; var rabbit = o; var turtle = o; while (rabbit != null) { if (sc_isPair(rabbit) && sc_isPair(rabbit.cdr)) { rabbit = rabbit.cdr.cdr; turtle = turtle.cdr; if (rabbit === turtle) return false; // cycle } else return false; // not pair } return true;}
function sc_isPairEqual(p1, p2) { return (sc_isEqual(p1.car, p2.car) && sc_isEqual(p1.cdr, p2.cdr));
function sc_isPairEqual(p1, p2, comp) { return (comp(p1.car, p2.car) && comp(p1.cdr, p2.cdr));
function sc_isPairEqual(p1, p2) { return (sc_isEqual(p1.car, p2.car) && sc_isEqual(p1.cdr, p2.cdr));}
function sc_isVectorEqual(v1, v2) {
function sc_isVectorEqual(v1, v2, comp) {
function sc_isVectorEqual(v1, v2) { if (v1.length != v2.length) return false; for (var i = 0; i < v1.length; i++) if (!sc_isEqual(v1[i], v2[i])) return false; return true;}
if (!sc_isEqual(v1[i], v2[i])) return false;
if (!comp(v1[i], v2[i])) return false;
function sc_isVectorEqual(v1, v2) { if (v1.length != v2.length) return false; for (var i = 0; i < v1.length; i++) if (!sc_isEqual(v1[i], v2[i])) return false; return true;}
sc_storage.push(sc_frame);
function sc_jsCall_callcc(o, fun) { /// export-higher var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; fun = sc_frame.fun; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters anyways. var sc_frame = new Object(); sc_frame.o = o; sc_frame.fun = fun; } try { var args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i]; return fun.apply(o, args); } finally { sc_storage.pop(); }}
field = sc_frame.field;
fun = sc_frame.fun;
function sc_jsMethodCall_callcc(o, field) { /// export var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; field = sc_frame.field; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters anyways. var sc_frame = new Object(); sc_frame.o = o; sc_frame.field = field; } try { var args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i]; return o[field].apply(o, args); } finally { sc_storage.pop(); }}
sc_frame.field = field;
sc_frame.fun = fun = o[field]; args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i];
function sc_jsMethodCall_callcc(o, field) { /// export var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; field = sc_frame.field; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters anyways. var sc_frame = new Object(); sc_frame.o = o; sc_frame.field = field; } try { var args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i]; return o[field].apply(o, args); } finally { sc_storage.pop(); }}
var args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i]; return o[field].apply(o, args);
return fun.apply(o, args);
function sc_jsMethodCall_callcc(o, field) { /// export var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; field = sc_frame.field; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters anyways. var sc_frame = new Object(); sc_frame.o = o; sc_frame.field = field; } try { var args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i]; return o[field].apply(o, args); } finally { sc_storage.pop(); }}
sc_storage.push(sc_frame)
function sc_jsMethodCall_callcc(o, field) { /// export-higher var sc_storage = sc_CALLCC_STORAGE; var fun; var args; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; fun = sc_frame.fun; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters anyways. var sc_frame = new Object(); sc_frame.o = o; sc_frame.fun = fun = o[field]; args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i]; } try { return fun.apply(o, args); } finally { sc_storage.pop(); }}
return this.val = str;
var old = SeenKeywords[str]; if (old === undefined) { SeenKeywords[str] = this; return this.val = str; } else { return old; }
function sc_Keyword(str) { /// export return this.val = str;}
return undefined;
function sc_Keyword(str) { var cached = sc_Keyword.lazy[str]; if (cached) return cached; sc_Keyword.lazy[str] = this; this.val = str;}
res = sc_cons(a[i], res);
res = new sc_Pair(a[i], res);
function sc_list() { /// export var res = null; var a = arguments; for (var i = a.length-1; i >= 0; i--) res = sc_cons(a[i], res); return res;}
res = sc_cons(fill, res);
res = new sc_Pair(fill, res);
function sc_makeList(nbEls, fill) { /// export var res = null; for (var i = 0; i < nbEls; i++) res = sc_cons(fill, res); return res;}
function sc_map(proc, l1, l2) { if (arguments.length == 2)
function sc_map(proc, l1, l2, l3) { if (l2 === undefined)
function sc_map(proc, l1, l2) { /// export if (arguments.length == 2) return sc_map1(proc, l1); else if (arguments.length == 3) return sc_map2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); var revres = null; while (l1 !== null) { for (var i = 0; i < nbApplyArgs; i++) { applyArgs[i] = arguments[i + 1].car; arguments[i + 1] = arguments[i + 1].cdr; } revres = sc_cons(proc.apply(null, applyArgs), revres); } return sc_destReverseAppend(revres, null);}