Switch build to use browserify (#502)

This commit is contained in:
Niklas von Hertzen
2015-02-03 21:34:05 +02:00
parent 60619dca72
commit f3b6df267e
48 changed files with 4044 additions and 1234 deletions

View File

@@ -1,3 +1,5 @@
var NodeContainer = html2canvas.NodeContainer;
describe('Borders', function() {
$('#borders div').each(function(i, node) {
it($(this).attr('style'), function() {
@@ -41,7 +43,7 @@ describe('Background-position', function() {
var container = new NodeContainer(node, null);
var item = container.css(prop),
backgroundPosition = container.parseBackgroundPosition(getBounds(node), img),
backgroundPosition = container.parseBackgroundPosition(html2canvas.utils.getBounds(node), img),
split = (window.getComputedStyle) ? $(node).css(prop).split(" ") : [$(node).css(prop+"X"), $(node).css(prop+"Y")];
var testEl = $('<div />').css({
@@ -210,7 +212,7 @@ describe('Background-image', function() {
function test_parse_background_image(value, expected, name) {
it(name, function() {
expect(parseBackgrounds(value)).to.eql(Array.isArray(expected) ? expected : [expected]);
expect(html2canvas.utils.parseBackgrounds(value)).to.eql(Array.isArray(expected) ? expected : [expected]);
});
}
});