Commit 7d6fd9e5 authored by ap's avatar ap

Reviewed by Tim H.

        http://bugs.webkit.org/show_bug.cgi?id=11130
        Convert "undefined" to AE missing value

WebCore:
        * bridge/mac/WebCoreFrameBridge.mm:
        (aeDescFromJSValue): return missing value for UndefinedType.

LayoutTests:
        * fast/AppleScript/001-expected.txt:
        * fast/AppleScript/array-expected.txt:
        Updated the results.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 45b37cda
2006-10-03 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Tim H.
http://bugs.webkit.org/show_bug.cgi?id=11130
Convert "undefined" to AE missing value
* fast/AppleScript/001-expected.txt:
* fast/AppleScript/array-expected.txt:
Updated the results.
2006-10-03 Justin Garcia <justin.garcia@apple.com>
Reviewed by harrison
......@@ -15,7 +15,7 @@ An automated test for basic AppleScript "do JavaScript" support. ('utxt')
An automated test for basic AppleScript "do JavaScript" support. ('utxt')
[object HTMLDocument] ('utxt')
do JavaScript - converting to AppleScript types ('utxt')
<> ('null')
msng ('type')
(null)
[object Object] ('utxt')
......
(1, 2, three) ('list')
(<>, <>, 2) ('list')
(msng, msng, 2) ('list')
(0, "0,") ('list')
2006-10-03 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Tim H.
http://bugs.webkit.org/show_bug.cgi?id=11130
Convert "undefined" to AE missing value
* bridge/mac/WebCoreFrameBridge.mm:
(aeDescFromJSValue): return missing value for UndefinedType.
2006-10-03 Dave Hyatt <hyatt@apple.com>
Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in
......@@ -217,11 +217,13 @@ static NSAppleEventDescriptor* aeDescFromJSValue(ExecState* exec, JSValue* jsVal
}
break;
}
case UndefinedType:
aeDesc = [NSAppleEventDescriptor descriptorWithTypeCode:cMissingValue];
break;
default:
LOG_ERROR("Unknown JavaScript type: %d", jsValue->type());
// no break;
case UnspecifiedType:
case UndefinedType:
case NullType:
case GetterSetterType:
aeDesc = [NSAppleEventDescriptor nullDescriptor];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment