From 571de20f66c936196098cf2e56a17ad71751f952 Mon Sep 17 00:00:00 2001 From: Tristan Cavelier <tristan.cavelier@tiolive.com> Date: Thu, 29 Aug 2013 11:48:27 +0200 Subject: [PATCH] requirejs asynctests added --- test/asynctests.require.html | 13 +++++++++++++ test/asynctests.require.js | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 test/asynctests.require.html create mode 100644 test/asynctests.require.js diff --git a/test/asynctests.require.html b/test/asynctests.require.html new file mode 100644 index 0000000..0a45edf --- /dev/null +++ b/test/asynctests.require.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <title>JIO Qunit/Sinon Unit Tests</title> + <script src="../lib/require/require.js"></script> + <script src="asynctests.require.js"></script> + <link rel="stylesheet" href="../lib/qunit/qunit.css" /> +</head> +<body> + <div id="qunit"></div> +</body> +</html> diff --git a/test/asynctests.require.js b/test/asynctests.require.js new file mode 100644 index 0000000..4480a7d --- /dev/null +++ b/test/asynctests.require.js @@ -0,0 +1,33 @@ +/*jslint indent: 2, maxlen: 80, nomen : true */ +/*global require */ + +(function () { + "use strict"; + + require.config({ + "paths": { + "sha256": "../src/sha256.amd", + "jio": "../jio", + + "test_util": "jio/util", + "fakestorage": "jio/fakestorage", + + "complex_queries": "../complex_queries", + "localstorage": "../src/jio.storage/localstorage", + "localstorage_tests": "jio.storage/localstorage.asynctests", + + "qunit": "../lib/qunit/qunit", + "sinon": "../lib/sinon/sinon", + "sinon_qunit": "../lib/sinon/sinon-qunit" + }, + "shim": { + "sinon": ["qunit"], + "sinon_qunit": ["sinon"] + } + }); + + require([ + "sinon_qunit", + "localstorage_tests" + ]); +}()); -- 2.30.9