- http://bugzilla.opendarwin.org/show_bug.cgi?id=10759
fast/AppleScript/array.html test failing
WebCore:
* bridge/mac/WebCoreFrameBridge.mm:
(aeDescFromJSValue): Convert integer values to typeSInt32 AE descriptors.
LayoutTests:
* fast/AppleScript/001-expected.txt: Updated results.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16274
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-09-09 Alexey Proskuryakov <ap@nypop.com>
+
+ Reviewed by Darin.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=10759
+ fast/AppleScript/array.html test failing
+
+ * fast/AppleScript/001-expected.txt: Updated results.
+
2006-09-07 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin.
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > BODY > HTML > #document to 65 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
An automated test for basic AppleScript "do JavaScript" support.
-4 ('doub')
-4 ('doub')
+4 ('long')
+4 ('long')
0.6666666666666666 ('doub')
0.6666666666666666 ('doub')
INF ('doub')
+2006-09-09 Alexey Proskuryakov <ap@nypop.com>
+
+ Reviewed by Darin.
+
+ - http://bugzilla.opendarwin.org/show_bug.cgi?id=10759
+ fast/AppleScript/array.html test failing
+
+ * bridge/mac/WebCoreFrameBridge.mm:
+ (aeDescFromJSValue): Convert integer values to typeSInt32 AE descriptors.
+
2006-09-08 Eric Seidel <eric@eseidel.com>
Reviewed by darin.
aeDesc = [NSAppleEventDescriptor descriptorWithString:String(jsValue->getString())];
break;
case NumberType: {
- Float64 value = jsValue->getNumber();
- aeDesc = [NSAppleEventDescriptor descriptorWithDescriptorType:typeIEEE64BitFloatingPoint bytes:&value length:sizeof(value)];
+ double value = jsValue->getNumber();
+ int intValue = (int)value;
+ if (value == intValue)
+ aeDesc = [NSAppleEventDescriptor descriptorWithDescriptorType:typeSInt32 bytes:&intValue length:sizeof(intValue)];
+ else
+ aeDesc = [NSAppleEventDescriptor descriptorWithDescriptorType:typeIEEE64BitFloatingPoint bytes:&value length:sizeof(value)];
break;
}
case ObjectType: {