Skip to content

Commit

Permalink
Remove all image files used in Quick View unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RaymondLim committed Apr 27, 2013
1 parent 749f8dc commit 2e7a678
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 32 deletions.
Binary file not shown.
Binary file not shown.
18 changes: 0 additions & 18 deletions src/extensions/default/QuickView/unittest-files/img/Example.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions src/extensions/default/QuickView/unittest-files/test.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,18 @@ background: -ms-linear-gradient(top, #d2dfed 0%,#c8d7eb 26%,#bed0ea 51%,#a6c0e3
.images {
background: url(img/grabber_color-well.png);
background: url("img/Color.png");
background: url(img/DancingPeaks.gif);
background: url('img/Example.svg');
background: url(img/throbber.gif);
background: url('img/update_large_icon.svg');

background: "https://raw.github.com/gruehle/HoverPreview/master/screenshots/Image.png";

background: "img/med_hero.jpg";
background: 'img/Gradient.png';
background: 'img/Lake_mapourika_NZ.jpeg';
background: 'img/specials.jpeg';
}

.foo {
background: -webkit-image-set(url("img/Lake_mapourika_NZ.jpeg") 1x, url("img/Gradient.png") 2x);
background: -webkit-image-set(url(img/Lake_mapourika_NZ.jpeg) 1x, url(img/Gradient.png) 2x);
background: -webkit-image-set("img/Lake_mapourika_NZ.jpeg" 1x, "img/Gradient.png" 2x);
background: -webkit-image-set(url("img/specials.jpeg") 1x, url("img/Gradient.png") 2x);
background: -webkit-image-set(url(img/specials.jpeg) 1x, url(img/Gradient.png) 2x);
background: -webkit-image-set("img/specials.jpeg" 1x, "img/Gradient.png" 2x);
}
16 changes: 8 additions & 8 deletions src/extensions/default/QuickView/unittests.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ define(function (require, exports, module) {
runs(function () {
checkImagePathAtPos("img/grabber_color-well.png", 140, 26);
checkImagePathAtPos("img/Color.png", 141, 26);
checkImagePathAtPos("img/DancingPeaks.gif", 142, 26);
checkImagePathAtPos("img/Example.svg", 143, 26);
checkImagePathAtPos("img/throbber.gif", 142, 26);
checkImagePathAtPos("img/update_large_icon.svg", 143, 26);
});
});

Expand All @@ -373,17 +373,17 @@ define(function (require, exports, module) {

it("Should show image preview for file path inside single or double quotes", function () {
runs(function () {
checkImagePathAtPos("img/med_hero.jpg", 147, 26);
checkImagePathAtPos("img/Gradient.png", 148, 26);
checkImagePathAtPos("Lake_mapourika_NZ.jpeg", 149, 26);
checkImagePathAtPos("img/med_hero.jpg", 147, 26);
checkImagePathAtPos("img/Gradient.png", 148, 26);
checkImagePathAtPos("img/specials.jpeg", 149, 26);
});
});

it("Should show image preview for subsequent images in a line", function () {
runs(function () {
checkImagePathAtPos("img/Gradient.png", 153, 84); // url("")
checkImagePathAtPos("img/Gradient.png", 154, 84); // url()
checkImagePathAtPos("img/Gradient.png", 155, 84); // ""
checkImagePathAtPos("img/Gradient.png", 153, 80); // url("")
checkImagePathAtPos("img/Gradient.png", 154, 80); // url()
checkImagePathAtPos("img/Gradient.png", 155, 80); // ""
});

// This must be in the last spec in the suite.
Expand Down

0 comments on commit 2e7a678

Please sign in to comment.