Fix not-allowed inline scripts error

This commit is contained in:
Matt Corallo 2014-07-26 01:37:47 -04:00
parent a6b0d1f84b
commit d9f53d4c01
2 changed files with 12 additions and 15 deletions

View file

@ -14,6 +14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
mocha.setup("bdd");
window.assert = chai.assert;
describe("ArrayBuffer->String conversion", function() {
it('works', function() {
var b = new ArrayBuffer(3);
@ -137,9 +140,9 @@ describe("Curve25519", function() {
// this is a just cute little trick to get a nice-looking note about
// which curve25519 impl we're using.
if (window.textsecure.nacl.USE_NACL) {
it("is NACL");
it("is NACL", function(done) { done(); });
} else {
it("is JavaScript");
it("is JavaScript", function(done) { done(); });
}
});
@ -395,3 +398,8 @@ describe("Axolotl", function() {
});
});
});
if (window.mochaPhantomJS)
mochaPhantomJS.run();
else
mocha.run();