mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.6 KiB
54 lines
1.6 KiB
--- !ditz.rubyforge.org,2008-03-06/issue
|
|
title: add some common test case helpers
|
|
desc: |-
|
|
For example:
|
|
|
|
* Many test cases use a wrapper which does try-catch and then prints
|
|
out either error 'name' or full error message (if error is unexpected).
|
|
This can be shortened by a helper with a function argument.
|
|
|
|
* Many string test cases would benefit from safe printing of strings,
|
|
either as a plain codepoint list, or using ASCII only escaping for
|
|
non-printable characters.
|
|
|
|
* Getting and printing property descriptors.
|
|
|
|
* Printing values with explicit type information, implementation independent
|
|
printing of functions (e.g. print "function name=X"), etc.
|
|
|
|
Some of these helpers could be added to some shared helper object.
|
|
Others could naturally go into prototypes; for instance:
|
|
|
|
print("foo\u1234bar".toCodePointString());
|
|
"foo\u1234bar".printCodePoints();
|
|
type: :task
|
|
component: duk
|
|
release: v0.8
|
|
reporter: sva <sami.vaarala@iki.fi>
|
|
status: :unstarted
|
|
disposition:
|
|
creation_time: 2013-03-14 21:30:40.519732 Z
|
|
references: []
|
|
|
|
id: 18f1769f0eff355381c7f90fb59ba5097e64e5af
|
|
log_events:
|
|
- - 2013-03-14 21:30:40.692697 Z
|
|
- sva <sami.vaarala@iki.fi>
|
|
- created
|
|
- ""
|
|
- - 2013-03-28 21:43:52.112892 Z
|
|
- sva <sami.vaarala@iki.fi>
|
|
- assigned to release v0.5 from v0.4
|
|
- ""
|
|
- - 2013-04-21 19:32:13.669342 Z
|
|
- sva <sami.vaarala@iki.fi>
|
|
- assigned to release v0.6 from v0.5
|
|
- ""
|
|
- - 2013-08-02 14:54:00.809979 Z
|
|
- sva <sami.vaarala@iki.fi>
|
|
- assigned to release v0.7 from v0.6
|
|
- ""
|
|
- - 2013-09-29 10:01:18.923387 Z
|
|
- sva <sami.vaarala@iki.fi>
|
|
- assigned to release v0.8 from v0.7
|
|
- ""
|
|
|