Skip to content

Instantly share code, notes, and snippets.

@jzaefferer
jzaefferer / rhino suitejs
Created November 30, 2010 20:53
QUnit-CLI with both Rhino and Node.js;
if (typeof require != "undefined") {
// should change export to module.exports = QUnit
QUnit = require("../qunit/qunit.js").QUnit;
print = console.log;
} else {
load("../qunit/qunit.js");
}
var stop_watch = {
Index: tests/visual/menu/default.html
===================================================================
--- tests/visual/menu/default.html (revision 3488)
+++ tests/visual/menu/default.html (working copy)
@@ -21,33 +21,6 @@
selected: function(event, ui) {
$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
}
- }).keydown(function(event) {
- var menu = $(this).data("menu");
// adding a remote validation customization, that allows us to submit the form even if the backend validation failed
function remoteFailsafe(url) {
return function(input) {
return {
url: url,
timeout: 10000,
error: function(request, status) {
request.abort();
// if request failed, try to submit anyway
if (status === "timeout" && validator.formSubmitted) {