Changeset 4189
- Timestamp:
- 09/07/09 06:02:32 (4 years ago)
- Location:
- CKTester
- Files:
-
- 5 added
- 2 edited
-
cell.js (modified) (2 diffs)
-
fort.js (modified) (2 diffs)
-
runners/manual (added)
-
runners/manual/manual.js (added)
-
runners/manual/scripts.html (added)
-
runners/manual/tracwiki.js (added)
-
runners/manual/yui-resize.css (added)
Legend:
- Unmodified
- Added
- Removed
-
CKTester/cell.js
r4129 r4189 40 40 } 41 41 42 var mode = ( runnerWindow == opener ) ? 'standalone' : 'managed', 43 runner = runnerWindow.CKTESTER.fort, 42 var runner = runnerWindow.CKTESTER.fort, 44 43 cell = runner.currentCell, 44 mode = ( runnerWindow == opener ) ? cell.mode : 'managed', 45 45 dependencies = cell && cell.environment; 46 46 … … 62 62 cell : 63 63 { 64 getAbsolutePath : runnerWindow.Function.prototype.curry.call( 65 runnerWindow.CKTESTER.fort.getAbsolutePath, window ), 64 getAbsolutePath : function ( path, isRelativeToFort ) 65 { 66 return runnerWindow.CKTESTER.fort.getAbsolutePath( isRelativeToFort == true ? null : window, path ); 67 }, 66 68 67 69 start : mode == 'managed' ? -
CKTester/fort.js
r4158 r4189 180 180 runCell : function() 181 181 { 182 this.currentCell = this.pendingCells.shift(); 183 this.currentCell && this.testFrame.setAttribute( 'src', this.currentCell.path + '.html' ); 184 }, 185 186 runSingleCell : function( cell ) 182 var cell = ( this.currentCell = this.pendingCells.shift() ), 183 inNewWindow = cell && cell.tags.indexOf( 'manual' ) != -1; 184 if( cell ) 185 // Force new window + managed mode for cells with manual tag. 186 inNewWindow ? 187 this.runSingleCell( this.currentCell, 'managed' ) 188 : this.testFrame.setAttribute( 'src', this.currentCell.path + '.html' ); 189 }, 190 191 runSingleCell : function( cell, mode ) 187 192 { 188 193 this.currentCell = cell; 194 cell.mode = mode || 'standalone'; 189 195 // Open the test frame in a new popup window. 190 196 window.open( cell.path + '.html' ); … … 334 340 'runners/yuitest/extension.js', 335 341 'runners/yuitest/test.js' ] ); 342 343 // Manual testing environments. 344 if( tags.indexOf( 'manual' ) != -1 ) 345 env = env.concat( [ 'runners/manual/yui-resize.css', 346 'runners/manual/yui-resize.js', 347 'runners/manual/manual.js' ] ); 348 336 349 if ( tags.indexOf( 'selenium' ) != -1 ) 337 350 env = env.concat( [ 'runners/selenium/selenium.js',
Note: See TracChangeset
for help on using the changeset viewer.
