Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 11, 2018
1 parent a77cf15 commit e2d3399
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions client/galaxy/scripts/qunit/tests/ui_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ QUnit.test("thumbnails", function(assert) {
assert.ok(thumb.$(".tab-pane").length == options.ntabs, "Two tabs found.");
assert.ok(thumb.$(".ui-thumbnails-item").length == options.nitems, "Thumbnail item.");
assert.ok(
$(thumb.$(".ui-thumbnails-image")[options.index || 0]).attr("src") == options.image_src,
$(thumb.$(".ui-thumbnails-image")[options.index]).attr("src") == options.image_src,
"Correct image source"
);
assert.ok(
$(thumb.$(".ui-thumbnails-title")[options.index || 0]).html() == options.title,
$(thumb.$(".ui-thumbnails-title")[options.index]).html() == options.title,
"Correct title with icon"
);
assert.ok(
$(thumb.$(".ui-thumbnails-description-text")[options.index || 0]).html() == options.description,
$(thumb.$(".ui-thumbnails-description-text")[options.index]).html() == options.description,
"Correct description"
);
};
Expand All @@ -86,7 +86,7 @@ QUnit.test("thumbnails", function(assert) {
collection: [
{
id: "id",
keywords: "default",
regular: true,
title: "title",
title_icon: "title_icon",
image_src: "image_src",
Expand All @@ -97,6 +97,7 @@ QUnit.test("thumbnails", function(assert) {
var model = thumb.model;
$("body").prepend(thumb.$el);
_test({
index: 0,
ntabs: 2,
nitems: 2,
image_src: "image_src",
Expand All @@ -105,7 +106,7 @@ QUnit.test("thumbnails", function(assert) {
});
thumb.collection.add({
id: "id_a",
keywords: "default_a",
regular: true,
title: "title_a",
title_icon: "title_icon_a",
image_src: "image_src_a",
Expand Down

0 comments on commit e2d3399

Please sign in to comment.