minimal example of using [phantomjs] with [qunit]
$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.
onInputData({ | |
"log": { | |
"version": "1.2", | |
"creator": { | |
"name": "WebInspector", | |
"version": "537.36" | |
}, | |
"pages": [ | |
{ | |
"startedDateTime": "2015-11-02T16:22:37.316Z", |
(function($){ | |
$.geo = function(callback){ | |
if(!$.geo.data){ | |
$.ajax({ | |
cache: true, | |
url: '//www.google.com/jsapi', | |
dataType: "script", | |
success: function(){ |
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", | |
"DC": "District Of Columbia", |
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
{if member_group == '1'} | |
<script> | |
jQuery(window).load(function(){ | |
_gaq.push(["_trackEvent", "EE Perf", location.pathname, "{total_queries} queries", parseInt({elapsed_time},10), true]); | |
}); | |
</script> | |
{/if} |
// ==UserScript== | |
// @name Sensible defaults for jsFiddle. | |
// @author Mathias Bynens <http://mathiasbynens.be/> | |
// @modified-by Yahel Carmon | |
// @link http://mths.be/bde | |
// @match http://jsfiddle.net/* | |
// ==/UserScript== | |
if(window.location.pathname === "/") //only on new Fiddles | |
{ |