Commits

Ronald Oussoren committed 210b9ba

Fix 64-bit issues

  • Participants
  • Parent commits d28998d
  • Branches pyobjc-ancient

Comments (0)

Files changed (3)

File pyobjc-framework-WebKit/Lib/WebKit/PyObjC.bridgesupport

     <method selector='webView:shouldPerformAction:fromSender:' type='B@:@:@' />
     <method selector='webView:validateUserInterfaceItem:defaultValidation:' type='B@:@@B' />
     <method selector='webView:willPerformDragDestinationAction:forDraggingInfo:' type='v@:@i@' />
-    <method selector='webView:willPerformDragSourceAction:fromPoint:withPasteboard:' type='v@:@i{_NSPoint=ff}@' type64='v@:@i{CGPoint=dd}@' />
+    <method selector='webView:willPerformDragSourceAction:fromPoint:withPasteboard:' type='v@:@i{_NSPoint=ff}@' type64='v@:@q{CGPoint=dd}@' />
     <method selector='webViewAreToolbarsVisible:' type='B@:@' />
     <method selector='webViewClose:' type='v@:@' />
     <method selector='webViewContentRect:' type='{_NSRect={_NSPoint=ff}{_NSSize=ff}}@:@' type64='{CGRect={CGPoint=dd}{CGSize=dd}}@:@' />

File pyobjc-framework-WebKit/PyObjCTest/test_javascriptcore.py

 import JavaScriptCore
 
 class TestJavaScriptCore (TestCase):
+
+    @expectedFailure
     def testMissing(self):
         self.fail("Tests for JavaScriptCore are missing")
 

File pyobjc-framework-WebKit/PyObjCTest/test_webkit.py

 Some simple tests to check that the framework is properly wrapped.
 '''
 import objc
-import unittest
+from PyObjCTools.TestSupport import *
 import WebKit
 
-class TestWebKit (unittest.TestCase):
+class TestWebKit (TestCase):
     def testClasses(self):
         self.assert_( hasattr(WebKit, 'WebResource') )
         self.assert_( isinstance(WebKit.WebResource, objc.objc_class) )
         self.assert_( hasattr(WebKit, 'DOMRangeException') )
         self.assert_( isinstance(WebKit.DOMRangeException, unicode) )
 
+    @onlyOn32Bit
     def testFunctions(self):
         self.assert_( hasattr(WebKit, 'WebConvertNSImageToCGImageRef') )
         self.assert_(isinstance(WebKit.WebConvertNSImageToCGImageRef, objc.function) )
 
 
 if __name__ == "__main__":
-    unittest.main()
-
+    main()