2014-12-01 21:46:34 +01:00
|
|
|
# Copyright (c) 2012 Ecma International. All rights reserved.
|
2012-02-29 23:23:47 +01:00
|
|
|
# Ecma International makes this code available under the terms and conditions set
|
2014-12-01 21:46:34 +01:00
|
|
|
# forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
|
|
|
# "Use Terms"). Any redistribution of this code must retain the above
|
2012-02-29 23:23:47 +01:00
|
|
|
# copyright and this notice and otherwise comply with the Use Terms.
|
|
|
|
|
2011-09-24 20:47:48 +02:00
|
|
|
#--Imports---------------------------------------------------------------------
|
2014-07-19 00:22:37 +02:00
|
|
|
import parseTestRecord
|
2011-09-24 20:47:48 +02:00
|
|
|
|
|
|
|
#--Stubs-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
#--Globals---------------------------------------------------------------------
|
|
|
|
|
|
|
|
#--Helpers--------------------------------------------------------------------#
|
2011-09-25 01:35:45 +02:00
|
|
|
|
|
|
|
def convertDocString(docString):
|
2014-07-19 00:22:37 +02:00
|
|
|
envelope = parseTestRecord.parseTestRecord(docString, '')
|
|
|
|
envelope.pop('header', None)
|
|
|
|
envelope.pop('test', None)
|
2014-12-01 21:46:34 +01:00
|
|
|
|
2011-09-25 01:35:45 +02:00
|
|
|
return envelope
|