Bug 42364 - [Qt] Improve test covrage for QScriptValue
Summary: [Qt] Improve test covrage for QScriptValue
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks: 31863
  Show dependency treegraph
 
Reported: 2010-07-15 06:39 PDT by Jędrzej Nowacki
Modified: 2010-07-15 06:40 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jędrzej Nowacki 2010-07-15 06:39:19 PDT
QtScript have a great test covrage, but it could be even better.

Now the QScriptValue autotest use a set of values to check API, the set is initialized before each test case. Because of a lazy nature of a QScriptValue object, it is not perfect. The value after first contact with an engine get bound to it, so all other tests check modified version of the value. This was the main cause why bug 42363 was found in a benchmarks and not in an autotests.

I propose to recreate all values before each test.