Skip to content

Instantly share code, notes, and snippets.

View jovaneyck's full-sized avatar

Jo Van Eyck jovaneyck

View GitHub Profile
@jovaneyck
jovaneyck / CrossriderStub.js
Last active December 14, 2015 09:18
A basic stub for the Crossrider javascript API I use for local unit testing of browser extensions. It's by no means complete, so feel free to add/improve. Usage: *first reference this stub in your test html to make the stub available for your own code *next, reference the background.js in your test html (the order of script includes is important…
var appAPI = (function () {
var tabListener;
var backGroundListener;
var storedValue = null;
return {
ready: function (callback) { callback(); },
message: {
addListener: function (listener) {