This repository was archived by the owner on Oct 8, 2021. It is now read-only.
File tree 2 files changed +21
-8
lines changed
2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 101
101
102
102
asyncTest ( "menupage is removed when the parent page is removed" , function ( ) {
103
103
var dialogCount = $ ( ":jqmData(role='dialog')" ) . length ;
104
-
105
104
$ . testHelper . pageSequence ( [
106
105
resetHash ,
107
106
108
107
function ( ) {
109
-
110
108
$ . mobile . changePage ( "uncached-dom-cached-false.html" ) ;
111
109
} ,
112
110
113
111
function ( ) {
114
- same ( $ ( ":jqmData(role='dialog')" ) . length , dialogCount + 1 ) ;
112
+ // for performance reason we don't initially create the menu dialog now
113
+ same ( $ ( ":jqmData(role='dialog')" ) . length , dialogCount ) ;
114
+
115
+ // manually trigger dialog opening
116
+ $ ( "#domcache-uncached-page-select" ) . data ( 'selectmenu' ) . open ( ) ;
117
+ } ,
118
+
119
+ function ( ) {
120
+ // check if dialog was successfully created
121
+ same ( $ ( ":jqmData(role='dialog')" ) . length , dialogCount + 1 ) ;
122
+ $ ( "#domcache-uncached-page-select" ) . data ( 'selectmenu' ) . close ( ) ;
123
+ } ,
124
+
125
+ function ( ) {
126
+ // navigate to parent(initial) page
115
127
window . history . back ( ) ;
116
128
} ,
117
-
129
+
118
130
function ( ) {
119
131
same ( $ ( ":jqmData(role='dialog')" ) . length , dialogCount ) ;
120
- start ( ) ;
132
+ start ( ) ;
121
133
}
122
134
] ) ;
123
135
} ) ;
Original file line number Diff line number Diff line change 325
325
} ) ;
326
326
327
327
// issue #2547
328
- test ( "custom select list item links have unencoded option text values when using vanilla $.fn.text" , function ( ) {
328
+ // getEncodedText() is no longer used in _buildList() so we don't need this extra check
329
+ /*test( "custom select list item links have unencoded option text values when using vanilla $.fn.text", function() {
329
330
// undo our changes, undone in teardown
330
331
$.fn.getEncodedText = $.fn.text;
331
332
332
333
$( "#encoded-option" ).data( 'selectmenu' )._buildList();
333
334
334
335
same(window.encodedValueIsDefined, true);
335
- } ) ;
336
-
336
+ });*/
337
+
337
338
$ . mobile . page . prototype . options . keepNative = "select.should-be-native" ;
338
339
339
340
// not testing the positive case here since's it's obviously tested elsewhere
You can’t perform that action at this time.
0 commit comments