Skip to content

Commit ea7190a

Browse files
author
Gabriel Schulhof
committed
Unit tests: Table: Replacing .data() with .jqmData().
1 parent 76b959e commit ea7190a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/unit/table/table_core.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060

6161
ok($table.length, "table still enhanced");
6262

63-
ok($firstHeaderCell.data("cells").length,
63+
ok($firstHeaderCell.jqmData( "cells" ).length,
6464
"column cells still assigned to header cell");
6565

66-
equal($firstHeaderCell.data('cells').eq(0).closest("table").attr('id'),
66+
equal($firstHeaderCell.jqmData( "cells" ).eq(0).closest("table").attr('id'),
6767
"movie-table",
6868
"Cell stored is a refreshed cell (currently in the table");
6969

70-
equal($cellLookUp, $firstHeaderCell.data('cells').first().attr("data-test"),
70+
equal($cellLookUp, $firstHeaderCell.jqmData( "cells" ).first().attr("data-test"),
7171
"Cell stored in header is in the column of the respective header");
7272
start();
7373
}, 800);
@@ -111,7 +111,7 @@
111111
$(window).trigger("refresh_test_table", ["#reflow-table-test"]);
112112

113113
equal(
114-
$firstHeaderCell.data("cells").first().find('b').length,
114+
$firstHeaderCell.jqmData( "cells" ).first().find('b').length,
115115
1,
116116
"Refreshing does not add more labels to a table cell"
117117
);
@@ -197,7 +197,7 @@
197197
ok( $input.is( ":checked" ), false, "Input still not checked after refresh" );
198198

199199
equal(
200-
$second_input.data("cells").last().attr("data-test"),
200+
$second_input.jqmData( "cells" ).last().attr("data-test"),
201201
"foo",
202202
"Cell referenced in popup is in table after refresh, columns without data-priority set don't break table on refresh");
203203

@@ -235,7 +235,7 @@
235235
ok( $input.is( ":checked" ), false, "Input still not checked after rebuild" );
236236

237237
equal(
238-
$last_input.data("cells").last().attr("data-test"),
238+
$last_input.jqmData( "cells" ).last().attr("data-test"),
239239
"xyz",
240240
"Cell referenced in popup is in table after rebuild (new column and toggle button), columns without data-priority don't break table on rebuild");
241241

0 commit comments

Comments
 (0)