Changeset 138836 in webkit
- Timestamp:
- Jan 4, 2013 12:42:37 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r138835 r138836 1 2013-01-04 Joshua Bell <jsbell@chromium.org> 2 3 Add tests for WebIDL type conversions 4 https://bugs.webkit.org/show_bug.cgi?id=105927 5 6 Reviewed by Adam Barth. 7 8 This currently fails long long conversions of non-finites (which should map to 0). Patch 9 in progress at: http://wkbug.com/96798 10 11 * fast/js/webidl-type-mapping-expected.txt: Added. 12 * fast/js/webidl-type-mapping.html: Added. 13 1 14 2013-01-04 Stephen White <senorblanco@chromium.org> 2 15 -
trunk/Source/WebCore/CMakeLists.txt
r138727 r138836 2761 2761 testing/InternalSettings.idl 2762 2762 testing/MallocStatistics.idl 2763 testing/TypeConversions.idl 2763 2764 ) 2764 2765 -
trunk/Source/WebCore/ChangeLog
r138835 r138836 1 2013-01-04 Joshua Bell <jsbell@chromium.org> 2 3 Add tests for WebIDL type conversions 4 https://bugs.webkit.org/show_bug.cgi?id=105927 5 6 Reviewed by Adam Barth. 7 8 Expose attributes of various WebIDL types for testing ECMAScript value conversion, 9 including edge cases such as NaNs, Infinities, etc. These attributes hang off 10 a TypeConversions object created via window.internals.typeConversions(). 11 12 Test: fast/js/webidl-type-mapping.html 13 14 * CMakeLists.txt: 15 * DerivedSources.make: 16 * DerivedSources.pri: 17 * GNUmakefile.list.am: 18 * Target.pri: 19 * WebCore.gyp/WebCore.gyp: 20 * WebCore.gypi: 21 * WebCore.vcproj/WebCoreTestSupport.vcproj: 22 * WebCore.xcodeproj/project.pbxproj: 23 * testing/Internals.cpp: 24 (WebCore::Internals::typeConversions): 25 (WebCore): 26 * testing/Internals.h: 27 (WebCore): 28 * testing/Internals.idl: 29 * testing/TypeConversions.h: Added. 30 (WebCore): 31 (TypeConversions): 32 (WebCore::TypeConversions::create): 33 (WebCore::TypeConversions::testLong): 34 (WebCore::TypeConversions::setTestLong): 35 (WebCore::TypeConversions::testUnsignedLong): 36 (WebCore::TypeConversions::setTestUnsignedLong): 37 (WebCore::TypeConversions::testLongLong): 38 (WebCore::TypeConversions::setTestLongLong): 39 (WebCore::TypeConversions::testUnsignedLongLong): 40 (WebCore::TypeConversions::setTestUnsignedLongLong): 41 (WebCore::TypeConversions::TypeConversions): 42 * testing/TypeConversions.idl: Added. 43 1 44 2013-01-04 Stephen White <senorblanco@chromium.org> 2 45 -
trunk/Source/WebCore/DerivedSources.make
r138727 r138836 600 600 $(WebCore)/testing/InternalSettings.idl \ 601 601 $(WebCore)/testing/MallocStatistics.idl \ 602 $(WebCore)/testing/TypeConversions.idl \ 602 603 $(WebCore)/workers/AbstractWorker.idl \ 603 604 $(WebCore)/workers/DedicatedWorkerContext.idl \ -
trunk/Source/WebCore/DerivedSources.pri
r138727 r138836 460 460 $$PWD/testing/InternalSettings.idl \ 461 461 $$PWD/testing/MallocStatistics.idl \ 462 $$PWD/testing/TypeConversions.idl \ 462 463 $$PWD/workers/AbstractWorker.idl \ 463 464 $$PWD/workers/DedicatedWorkerContext.idl \ -
trunk/Source/WebCore/GNUmakefile.list.am
r138730 r138836 1739 1739 $(WebCore)/testing/InternalSettings.idl \ 1740 1740 $(WebCore)/testing/MallocStatistics.idl \ 1741 $(WebCore)/testing/TypeConversions.idl \ 1741 1742 $(WebCore)/workers/AbstractWorker.idl \ 1742 1743 $(WebCore)/workers/DedicatedWorkerContext.idl \ -
trunk/Source/WebCore/Target.pri
r138730 r138836 2776 2776 testing/InternalSettings.h \ 2777 2777 testing/MallocStatistics.h \ 2778 testing/TypeConversions.h \ 2778 2779 workers/AbstractWorker.h \ 2779 2780 workers/DedicatedWorkerContext.h \ -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r138727 r138836 2254 2254 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8MallocStatistics.cpp', 2255 2255 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8MallocStatistics.h', 2256 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8TypeConversions.cpp', 2257 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8TypeConversions.h', 2256 2258 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8Internals.cpp', 2257 2259 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8Internals.h', -
trunk/Source/WebCore/WebCore.gypi
r138727 r138836 5064 5064 'testing/InternalSettings.idl', 5065 5065 'testing/MallocStatistics.idl', 5066 'testing/TypeConversions.idl', 5066 5067 '<(SHARED_INTERMEDIATE_DIR)/webkit/InternalSettingsGenerated.idl', 5067 5068 ], … … 5080 5081 'testing/MockPagePopupDriver.cpp', 5081 5082 'testing/MockPagePopupDriver.h', 5083 'testing/TypeConversions.h', 5082 5084 '<(SHARED_INTERMEDIATE_DIR)/webkit/InternalSettingsGenerated.cpp', 5083 5085 '<(SHARED_INTERMEDIATE_DIR)/webkit/InternalSettingsGenerated.h', -
trunk/Source/WebCore/WebCore.vcproj/WebCoreTestSupport.vcproj
r138727 r138836 697 697 </File> 698 698 <File 699 RelativePath="..\testing\TypeConversions.h" 700 > 701 </File> 702 <File 699 703 RelativePath="..\testing\Internals.cpp" 700 704 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r138730 r138836 3901 3901 A740B59514C935AB00A77FA4 /* JSMallocStatistics.h in Headers */ = {isa = PBXBuildFile; fileRef = A7B4EA6914C9348400C8F5BF /* JSMallocStatistics.h */; }; 3902 3902 A740B59714C935AF00A77FA4 /* JSMallocStatistics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7B4EA6814C9348400C8F5BF /* JSMallocStatistics.cpp */; }; 3903 EBF5121D1696496C0056BD25 /* JSTypeConversions.h in Headers */ = {isa = PBXBuildFile; fileRef = EBF5121B1696496C0056BD25 /* JSTypeConversions.h */; }; 3904 EBF5121C1696496C0056BD25 /* JSTypeConversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EBF5121A1696496C0056BD25 /* JSTypeConversions.cpp */; }; 3903 3905 A740B5A514C935AB00A77FA4 /* JSInternalSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = A7B4EA7914C9348400C8F5BF /* JSInternalSettings.h */; }; 3904 3906 A740B5A714C935AF00A77FA4 /* JSInternalSettings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7B4EA7814C9348400C8F5BF /* JSInternalSettings.cpp */; }; … … 11309 11311 A7B4EA6814C9348400C8F5BF /* JSMallocStatistics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSMallocStatistics.cpp; sourceTree = "<group>"; }; 11310 11312 A7B4EA6914C9348400C8F5BF /* JSMallocStatistics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSMallocStatistics.h; sourceTree = "<group>"; }; 11313 EBF5121A1696496C0056BD25 /* JSTypeConversions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSTypeConversions.cpp; sourceTree = "<group>"; }; 11314 EBF5121B1696496C0056BD25 /* JSTypeConversions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTypeConversions.h; sourceTree = "<group>"; }; 11311 11315 A7B4EA7814C9348400C8F5BF /* JSInternalSettings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSInternalSettings.cpp; sourceTree = "<group>"; }; 11312 11316 A7B4EA7914C9348400C8F5BF /* JSInternalSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSInternalSettings.h; sourceTree = "<group>"; }; … … 13805 13809 E55F4979151B888000BB67DB /* LengthFunctions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LengthFunctions.cpp; sourceTree = "<group>"; }; 13806 13810 E5BA7D62151437CA00FE1E3F /* LengthFunctions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LengthFunctions.h; sourceTree = "<group>"; }; 13811 EB081CD81696084400553730 /* TypeConversions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TypeConversions.h; sourceTree = "<group>"; }; 13812 EB081CD91696084400553730 /* TypeConversions.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = TypeConversions.idl; sourceTree = "<group>"; }; 13807 13813 ED2BA83B09A24B91006C0AC4 /* DocumentMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DocumentMarker.h; sourceTree = "<group>"; }; 13808 13814 ED501DC50B249F2900AE18D9 /* EditorMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; name = EditorMac.mm; path = mac/EditorMac.mm; sourceTree = "<group>"; }; … … 15326 15332 A7BE7EDD14C9175A0014489D /* MallocStatistics.h */, 15327 15333 A7BE7EDE14C9175A0014489D /* MallocStatistics.idl */, 15334 EB081CD81696084400553730 /* TypeConversions.h */, 15335 EB081CD91696084400553730 /* TypeConversions.idl */, 15328 15336 ); 15329 15337 path = testing; … … 15341 15349 A7B4EA6814C9348400C8F5BF /* JSMallocStatistics.cpp */, 15342 15350 A7B4EA6914C9348400C8F5BF /* JSMallocStatistics.h */, 15351 EBF5121A1696496C0056BD25 /* JSTypeConversions.cpp */, 15352 EBF5121B1696496C0056BD25 /* JSTypeConversions.h */, 15343 15353 ); 15344 15354 name = Testing; … … 22658 22668 A740B5A514C935AB00A77FA4 /* JSInternalSettings.h in Headers */, 22659 22669 A740B59514C935AB00A77FA4 /* JSMallocStatistics.h in Headers */, 22670 EBF5121D1696496C0056BD25 /* JSTypeConversions.h in Headers */, 22660 22671 41815C1F138319830057AAA4 /* WebCoreTestSupport.h in Headers */, 22661 22672 53ED3FDF167A88E7006762E6 /* JSInternalSettingsGenerated.h in Headers */, … … 26347 26358 A740B5A714C935AF00A77FA4 /* JSInternalSettings.cpp in Sources */, 26348 26359 A740B59714C935AF00A77FA4 /* JSMallocStatistics.cpp in Sources */, 26360 EBF5121C1696496C0056BD25 /* JSTypeConversions.cpp in Sources */, 26349 26361 41815C1E138319830057AAA4 /* WebCoreTestSupport.cpp in Sources */, 26350 26362 53ED3FDE167A88E7006762E6 /* JSInternalSettingsGenerated.cpp in Sources */, -
trunk/Source/WebCore/testing/Internals.cpp
r138632 r138836 84 84 #include "TextIterator.h" 85 85 #include "TreeScope.h" 86 #include "TypeConversions.h" 86 87 #include "ViewportArguments.h" 87 88 #include <wtf/text/StringBuffer.h> … … 1702 1703 { 1703 1704 return MallocStatistics::create(); 1705 } 1706 1707 PassRefPtr<TypeConversions> Internals::typeConversions() const 1708 { 1709 return TypeConversions::create(); 1704 1710 } 1705 1711 -
trunk/Source/WebCore/testing/Internals.h
r138632 r138836 56 56 class MallocStatistics; 57 57 class SerializedScriptValue; 58 class TypeConversions; 58 59 59 60 typedef int ExceptionCode; … … 257 258 258 259 PassRefPtr<MallocStatistics> mallocStatistics() const; 260 PassRefPtr<TypeConversions> typeConversions() const; 259 261 260 262 PassRefPtr<DOMStringList> getReferencedFilePaths() const; -
trunk/Source/WebCore/testing/Internals.idl
r138632 r138836 221 221 222 222 MallocStatistics mallocStatistics(); 223 TypeConversions typeConversions(); 223 224 224 225 DOMString[] getReferencedFilePaths();
Note: See TracChangeset
for help on using the changeset viewer.