diff --git a/src/scripts/index.js b/index.js similarity index 100% rename from src/scripts/index.js rename to index.js diff --git a/src/scripts/lib/clone.js b/lib/clone.js similarity index 100% rename from src/scripts/lib/clone.js rename to lib/clone.js diff --git a/src/scripts/lib/eval-script.js b/lib/eval-script.js similarity index 100% rename from src/scripts/lib/eval-script.js rename to lib/eval-script.js diff --git a/src/scripts/lib/events/off.js b/lib/events/off.js similarity index 100% rename from src/scripts/lib/events/off.js rename to lib/events/off.js diff --git a/src/scripts/lib/events/on.js b/lib/events/on.js similarity index 100% rename from src/scripts/lib/events/on.js rename to lib/events/on.js diff --git a/src/scripts/lib/events/trigger.js b/lib/events/trigger.js similarity index 100% rename from src/scripts/lib/events/trigger.js rename to lib/events/trigger.js diff --git a/src/scripts/lib/execute-scripts.js b/lib/execute-scripts.js similarity index 100% rename from src/scripts/lib/execute-scripts.js rename to lib/execute-scripts.js diff --git a/src/scripts/lib/foreach-els.js b/lib/foreach-els.js similarity index 100% rename from src/scripts/lib/foreach-els.js rename to lib/foreach-els.js diff --git a/src/scripts/lib/foreach-selectors.js b/lib/foreach-selectors.js similarity index 100% rename from src/scripts/lib/foreach-selectors.js rename to lib/foreach-selectors.js diff --git a/src/scripts/lib/is-supported.js b/lib/is-supported.js similarity index 100% rename from src/scripts/lib/is-supported.js rename to lib/is-supported.js diff --git a/src/scripts/polyfills/Function.prototype.bind.js b/lib/polyfills/Function.prototype.bind.js similarity index 100% rename from src/scripts/polyfills/Function.prototype.bind.js rename to lib/polyfills/Function.prototype.bind.js diff --git a/src/scripts/lib/proto/attach-link.js b/lib/proto/attach-link.js similarity index 97% rename from src/scripts/lib/proto/attach-link.js rename to lib/proto/attach-link.js index bb3a64a..8c60a22 100644 --- a/src/scripts/lib/proto/attach-link.js +++ b/lib/proto/attach-link.js @@ -1,4 +1,4 @@ -require("../../polyfills/Function.prototype.bind") +require("../polyfills/Function.prototype.bind") var on = require("../events/on") var clone = require("../clone") diff --git a/src/scripts/lib/proto/get-elements.js b/lib/proto/get-elements.js similarity index 100% rename from src/scripts/lib/proto/get-elements.js rename to lib/proto/get-elements.js diff --git a/src/scripts/lib/proto/log.js b/lib/proto/log.js similarity index 100% rename from src/scripts/lib/proto/log.js rename to lib/proto/log.js diff --git a/src/scripts/lib/proto/parse-dom.js b/lib/proto/parse-dom.js similarity index 100% rename from src/scripts/lib/proto/parse-dom.js rename to lib/proto/parse-dom.js diff --git a/src/scripts/lib/proto/parse-element.js b/lib/proto/parse-element.js similarity index 100% rename from src/scripts/lib/proto/parse-element.js rename to lib/proto/parse-element.js diff --git a/src/scripts/lib/refresh.js b/lib/refresh.js similarity index 100% rename from src/scripts/lib/refresh.js rename to lib/refresh.js diff --git a/src/scripts/lib/request.js b/lib/request.js similarity index 100% rename from src/scripts/lib/request.js rename to lib/request.js diff --git a/src/scripts/lib/switches-selectors.js b/lib/switches-selectors.js similarity index 100% rename from src/scripts/lib/switches-selectors.js rename to lib/switches-selectors.js diff --git a/src/scripts/lib/switches.js b/lib/switches.js similarity index 100% rename from src/scripts/lib/switches.js rename to lib/switches.js diff --git a/src/scripts/lib/uniqueid.js b/lib/uniqueid.js similarity index 100% rename from src/scripts/lib/uniqueid.js rename to lib/uniqueid.js diff --git a/tests/index.html b/tests/index.html new file mode 100644 index 0000000..4c8c6b6 --- /dev/null +++ b/tests/index.html @@ -0,0 +1,12496 @@ +
diff --git a/tests/scripts/lib/clone.js b/tests/lib/clone.js similarity index 87% rename from tests/scripts/lib/clone.js rename to tests/lib/clone.js index d991e24..9997943 100644 --- a/tests/scripts/lib/clone.js +++ b/tests/lib/clone.js @@ -1,6 +1,6 @@ var tape = require("tape") -var clone = require("../../../src/scripts/lib/clone") +var clone = require("../../lib/clone") tape("test clone method", function(t) { var obj = {one: 1, two: 2} diff --git a/tests/scripts/lib/eval-scripts.js b/tests/lib/eval-scripts.js similarity index 90% rename from tests/scripts/lib/eval-scripts.js rename to tests/lib/eval-scripts.js index 2d53544..43113b9 100644 --- a/tests/scripts/lib/eval-scripts.js +++ b/tests/lib/eval-scripts.js @@ -1,6 +1,6 @@ var tape = require("tape") -var evalScript = require("../../../src/scripts/lib/eval-script") +var evalScript = require("../../lib/eval-script") tape("test evalScript method", function(t) { document.body.className = "" diff --git a/tests/scripts/lib/events.js b/tests/lib/events.js similarity index 94% rename from tests/scripts/lib/events.js rename to tests/lib/events.js index d979c8d..f13e112 100644 --- a/tests/scripts/lib/events.js +++ b/tests/lib/events.js @@ -1,8 +1,8 @@ var tape = require("tape") -var on = require("../../../src/scripts/lib/events/on") -var off = require("../../../src/scripts/lib/events/off") -var trigger = require("../../../src/scripts/lib/events/trigger") +var on = require("../../lib/events/on") +var off = require("../../lib/events/off") +var trigger = require("../../lib/events/trigger") var el = document.createElement("div") var el2 = document.createElement("span") diff --git a/tests/scripts/lib/execute-scripts.js b/tests/lib/execute-scripts.js similarity index 88% rename from tests/scripts/lib/execute-scripts.js rename to tests/lib/execute-scripts.js index fb4a421..bfea9b1 100644 --- a/tests/scripts/lib/execute-scripts.js +++ b/tests/lib/execute-scripts.js @@ -1,6 +1,6 @@ var tape = require("tape") -var executeScripts = require("../../../src/scripts/lib/execute-scripts") +var executeScripts = require("../../lib/execute-scripts") tape("test executeScripts method", function(t) { document.body.className = "" diff --git a/tests/scripts/lib/foreach-els.js b/tests/lib/foreach-els.js similarity index 94% rename from tests/scripts/lib/foreach-els.js rename to tests/lib/foreach-els.js index ea6aa15..7212626 100644 --- a/tests/scripts/lib/foreach-els.js +++ b/tests/lib/foreach-els.js @@ -1,6 +1,6 @@ var tape = require("tape") -var forEachEls = require("../../../src/scripts/lib/foreach-els.js") +var forEachEls = require("../../lib/foreach-els.js") var div = document.createElement("div") var span = document.createElement("span") diff --git a/tests/scripts/lib/foreach-selectors.js b/tests/lib/foreach-selectors.js similarity index 91% rename from tests/scripts/lib/foreach-selectors.js rename to tests/lib/foreach-selectors.js index 5668a4e..1175b32 100644 --- a/tests/scripts/lib/foreach-selectors.js +++ b/tests/lib/foreach-selectors.js @@ -1,6 +1,6 @@ var tape = require("tape") -var forEachEls = require("../../../src/scripts/lib/foreach-selectors.js") +var forEachEls = require("../../lib/foreach-selectors.js") var cb = function(el) { el.className = "modified" diff --git a/tests/scripts/lib/is-supported.js b/tests/lib/is-supported.js similarity index 71% rename from tests/scripts/lib/is-supported.js rename to tests/lib/is-supported.js index 7ca141b..d24f2c3 100644 --- a/tests/scripts/lib/is-supported.js +++ b/tests/lib/is-supported.js @@ -1,6 +1,6 @@ var tape = require("tape") -var isSupported = require("../../../src/scripts/lib/is-supported.js") +var isSupported = require("../../lib/is-supported.js") tape("test isSupported method", function(t) { t.true(isSupported(), "well, we run test on supported browser, so it should be ok here") diff --git a/tests/scripts/lib/proto/attach-link.js b/tests/lib/proto/attach-link.js similarity index 89% rename from tests/scripts/lib/proto/attach-link.js rename to tests/lib/proto/attach-link.js index b5272f9..aa66a88 100644 --- a/tests/scripts/lib/proto/attach-link.js +++ b/tests/lib/proto/attach-link.js @@ -1,8 +1,8 @@ var tape = require("tape") -var on = require("../../../../src/scripts/lib/events/on") -var trigger = require("../../../../src/scripts/lib/events/trigger") -var attachLink = require("../../../../src/scripts/lib/proto/attach-link") +var on = require("../../../lib/events/on") +var trigger = require("../../../lib/events/trigger") +var attachLink = require("../../../lib/proto/attach-link") var a = document.createElement("a") var attr = "data-pjax-click-state" diff --git a/tests/scripts/lib/proto/parse-element.js b/tests/lib/proto/parse-element.js similarity index 85% rename from tests/scripts/lib/proto/parse-element.js rename to tests/lib/proto/parse-element.js index 79d0d8a..69de686 100644 --- a/tests/scripts/lib/proto/parse-element.js +++ b/tests/lib/proto/parse-element.js @@ -1,6 +1,6 @@ var tape = require("tape") -var parseElement = require("../../../../src/scripts/lib/proto/parse-element") +var parseElement = require("../../../lib/proto/parse-element") var protoMock = {attachLink: function() { return true}} tape("test parse element prototype method", function(t) { diff --git a/tests/scripts/lib/request.js b/tests/lib/request.js similarity index 84% rename from tests/scripts/lib/request.js rename to tests/lib/request.js index 87d9020..41f8252 100644 --- a/tests/scripts/lib/request.js +++ b/tests/lib/request.js @@ -1,6 +1,6 @@ var tape = require("tape") -var request = require("../../../src/scripts/lib/request.js") +var request = require("../../lib/request.js") tape("test xhr request", function(t) { var xhr = request("https://api.github.com/", function(result) { diff --git a/tests/scripts/lib/switch-selectors.js b/tests/lib/switch-selectors.js similarity index 54% rename from tests/scripts/lib/switch-selectors.js rename to tests/lib/switch-selectors.js index 0d5bb80..19830da 100644 --- a/tests/scripts/lib/switch-selectors.js +++ b/tests/lib/switch-selectors.js @@ -1,6 +1,6 @@ var tape = require("tape") -var switchesSelectors = require("../../../src/scripts/lib/switches-selectors.js") +var switchesSelectors = require("../../lib/switches-selectors.js") tape("test switchesSelectors", function(t) { t.fail()