This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(typeof module != "undefined") | |
var scenario = require("../lib/gerbil.js").scenario; | |
scenario("Gerbil - Assertions", { | |
"should be able to assert": function(g) { | |
g.assert(true, true); | |
g.assert(true); // g.assert(x, x) is equivalent to g.assert(x) | |
g.assert(1 == 1); | |
g.assert(true != false); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires https://github.com/tildeio/rsvp.js | |
// Once in a blue moon we need to concatenate several thens executing basically the same code. | |
// Example: | |
// f().then(function(message) { | |
// alert(message + " #1"); | |
// return f(); | |
// }).then(function(message) { | |
// alert(message + " #2"); | |
// return f(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Outputs an empty HTML5 structure. | |
# Usage: | |
# emptyhtml5 [--with-script] [--with-style] | |
while [ $# -ne 0 ] | |
do | |
if [[ "$1" == "--with-script" ]]; then | |
script=" | |
<script src=\"[youscript.js]\"></script>" | |
elif [[ "$1" == "--with-style" ]]; then |
NewerOlder