Skip to content

Commit 10bb213

Browse files
Tests: Select theme test.
1 parent 9de9cbe commit 10bb213

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/unit/select/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
<div id="qunit"></div>
3838

39-
<div id="default" data-nstest-role="page" data-nstest-theme="c">
39+
<div id="default" data-nstest-role="page" data-nstest-theme="b">
4040
<div data-nstest-role="fieldcontain" id="select-choice-few-container">
4141
<select name="select-choice-few" id="select-choice-few" data-nstest-native-menu="false">
4242
<option value="standard">Standard: 7 day</option>

tests/unit/select/select_core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@
227227
test( "select without theme defined inherits theme from parent", function() {
228228
var select = $("select#parent-themed");
229229

230-
ok( select
230+
deepEqual( select
231231
.siblings( "a" )
232-
.hasClass("ui-btn-up-" + select.parents(":jqmData(role='page')").jqmData('theme')));
232+
.css( "background-color" ), "rgb(44, 44, 44)" ); /* The RGB value should match the background color we set for ui-btn-b in the default theme */
233233
});
234234

235235
// issue #2547

0 commit comments

Comments
 (0)