Beging implementing reftests

This commit is contained in:
Niklas von Hertzen
2017-08-09 00:50:31 +08:00
parent 93f08c7547
commit 58d1bef3b6
163 changed files with 15221 additions and 14371 deletions

View File

@ -2,22 +2,22 @@ var assert = require('assert');
var path = require('path');
var html2canvas = require('../../');
describe("Package", function() {
it("should have html2canvas defined", function() {
assert.equal(typeof(html2canvas), "function");
describe('Package', function() {
it('should have html2canvas defined', function() {
assert.equal(typeof html2canvas, 'function');
});
});
describe.only("requirejs", function() {
describe.only('requirejs', function() {
var requirejs = require('requirejs');
requirejs.config({
baseUrl: path.resolve(__dirname, '../../dist')
});
it("should have html2canvas defined", function(done) {
it('should have html2canvas defined', function(done) {
requirejs(['html2canvas'], function(h2c) {
assert.equal(typeof(h2c), "function");
assert.equal(typeof h2c, 'function');
done();
});
});