Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Jun 5, 2014
2 parents d9d2f82 + cc534cf commit 9582f2b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions _test/core/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,20 +370,21 @@ test( 'split--offset=data.length', function() {
} );

/*求相对视窗的位置而不是实际位置*/
//test( 'getXY', function() {
// var div = te.dom[2];
// var domUtils = te.obj[3];
// equal( domUtils.getXY( div )['x'], ua.findPosition( div )[0] - document.documentElement.scrollLeft, 'check X' );
// equal( domUtils.getXY( div )['y'], ua.findPosition( div )[1] - document.documentElement.scrollTop, 'check Y' );
//
//} );
test( 'getXY', function() {
var div = te.dom[2];
var domUtils = te.obj[3];
equal( domUtils.getXY( div )['x'], ua.findPosition( div )[0] - document.documentElement.scrollLeft, 'check X' );
equal( domUtils.getXY( div )['y'], ua.findPosition( div )[1] - document.documentElement.scrollTop, 'check Y' );

} );


//
//test( 'on--跨iframe加载', function() {
// expect( 1 );
// var domUtils = te.obj[3];
// var op = {
// onafterstart : function( f ) {
// debugger
// domUtils.on( f, 'load', function() {
// ok( true, 'on load of iframe success' );
// } );
Expand All @@ -392,9 +393,10 @@ test( 'split--offset=data.length', function() {
// this.finish();
// }
// };
//
// ua.frameExt( op );
//} );
//


//test( 'on- 给不同的dom元素绑定相同的事件', function() {
// var domUtils = te.obj[3];
Expand All @@ -403,6 +405,7 @@ test( 'split--offset=data.length', function() {
// div2.id = 'test2';
// te.dom.push( div2 );
// var handle = function( e ) {
// debugger
// ok( true, e.type + ' event triggered' );
// };
// domUtils.on( te.dom[2], 'mouseover', handle);
Expand Down Expand Up @@ -452,7 +455,7 @@ test( 'split--offset=data.length', function() {
// div.appendChild( document.createElement( 'div' ) );
// div.appendChild( document.createElement( 'div' ) );
//} );
//

//test( "un--取消注册unload事件", function() {
// expect( 1 );
// var domUtils = te.obj[3];
Expand Down

0 comments on commit 9582f2b

Please sign in to comment.