Skip to content
This repository was archived by the owner on Feb 9, 2018. It is now read-only.

Commit c86ca1e

Browse files
committed
Reset tests
1 parent f979953 commit c86ca1e

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

test/js/css-image-value.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,6 @@ suite('CSSImageValue', function() {
3333
assert.throws(function() { new typedOM.internal.CSSImageValue({ x: 1, y: 2 }); }, TypeError, imageErr);
3434
});
3535

36-
/*
37-
test('Can accept an already loaded image', function(done) {
38-
var image = new Image();
39-
//image.src = "resources/1x1-green.png";
40-
image.onload = function() {
41-
var cssImageValue = new typedOM.internal.CSSImageValue(image);
42-
assert.strictEqual(image.state, "loaded");
43-
assert.strictEqual(image.intrinsicWidth, 1);
44-
assert.strictEqual(image.intrinsicHeight, 1);
45-
assert.strictEqual(image.intrinsicRatio, 1);
46-
done();
47-
};
48-
});*/
49-
5036
test('State and dimensions are correct before and after loading', function(done) {
5137
var image = new typedOM.internal.CSSImageValue(new Image());
5238
assert.strictEqual(image.state, "unloaded");
@@ -58,7 +44,7 @@ suite('CSSImageValue', function() {
5844
image._image.onload = function() {
5945
oldOnload();
6046
assert.strictEqual(image.state, "loaded");
61-
assert.strictEqual(image.intrinsicWidth, 2);
47+
assert.strictEqual(image.intrinsicWidth, 1);
6248
assert.strictEqual(image.intrinsicHeight, 1);
6349
assert.strictEqual(image.intrinsicRatio, 1);
6450
done();

0 commit comments

Comments
 (0)