|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2011, 2012 EclipseSource and others. |
2 |
* Copyright (c) 2011, 2013 EclipseSource and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 611-616
Link Here
|
| 611 |
this._disposeShell(); |
611 |
this._disposeShell(); |
| 612 |
}, |
612 |
}, |
| 613 |
|
613 |
|
|
|
614 |
testNotifyMouseDown_FloatPointValues : function() { |
| 615 |
rwt.remote.EventUtil.setSuspended( true ); |
| 616 |
var shell = this._protocolCreateShell(); |
| 617 |
this._protocolListen( { "MouseDown" : true } ); |
| 618 |
this._protocolSet( { "visibility" : true } ); |
| 619 |
TestUtil.flush(); |
| 620 |
rwt.remote.EventUtil.setSuspended( false ); |
| 621 |
|
| 622 |
TestUtil.click( shell, 10.4, 20.3 ); |
| 623 |
|
| 624 |
var message = TestUtil.getMessageObject(); |
| 625 |
assertEquals( 1, message.findNotifyProperty( "w3", "MouseDown", "button" ) ); |
| 626 |
assertEquals( 10, message.findNotifyProperty( "w3", "MouseDown", "x" ) ); |
| 627 |
assertEquals( 20, message.findNotifyProperty( "w3", "MouseDown", "y" ) ); |
| 628 |
assertNotNull( message.findNotifyProperty( "w3", "MouseDown", "time" ) ); |
| 629 |
assertFalse( message.findNotifyProperty( "w3", "MouseDown", "shiftKey" ) ); |
| 630 |
assertFalse( message.findNotifyProperty( "w3", "MouseDown", "ctrlKey" ) ); |
| 631 |
assertFalse( message.findNotifyProperty( "w3", "MouseDown", "altKey" ) ); |
| 632 |
this._disposeShell(); |
| 633 |
}, |
| 634 |
|
| 614 |
testNotifyMouseUp : function() { |
635 |
testNotifyMouseUp : function() { |
| 615 |
rwt.remote.EventUtil.setSuspended( true ); |
636 |
rwt.remote.EventUtil.setSuspended( true ); |
| 616 |
var shell = this._protocolCreateShell(); |
637 |
var shell = this._protocolCreateShell(); |