Bug 104423 - [JSC] Add tests for explicit serialization values
Summary: [JSC] Add tests for explicit serialization values
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-07 18:09 PST by Michael Pruett
Modified: 2012-12-11 12:59 PST (History)
10 users (show)

See Also:


Attachments
Patch (26.59 KB, patch)
2012-12-08 12:45 PST, Michael Pruett
dpranke: review-
Details | Formatted Diff | Diff
Patch (25.46 KB, patch)
2012-12-08 14:06 PST, Michael Pruett
no flags Details | Formatted Diff | Diff
Patch (25.46 KB, patch)
2012-12-08 14:11 PST, Michael Pruett
buildbot: commit-queue-
Details | Formatted Diff | Diff
Patch (25.78 KB, patch)
2012-12-08 15:39 PST, Michael Pruett
buildbot: commit-queue-
Details | Formatted Diff | Diff
Patch (25.50 KB, patch)
2012-12-08 16:18 PST, Michael Pruett
no flags Details | Formatted Diff | Diff
Patch (25.68 KB, patch)
2012-12-10 11:02 PST, Michael Pruett
no flags Details | Formatted Diff | Diff
Patch (31.31 KB, patch)
2012-12-10 16:21 PST, Michael Pruett
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Pruett 2012-12-07 18:09:31 PST
Tests for explicit serialization values for V8 were added in r135022. Similar tests should be added for JSC's serialization format.
Comment 1 Michael Pruett 2012-12-08 12:45:05 PST
Created attachment 178372 [details]
Patch
Comment 2 Dirk Pranke 2012-12-08 13:32:34 PST
Comment on attachment 178372 [details]
Patch

JSC isn't a platform, so it feels wrong to me to put this stuff under LayoutTests/platform. I suggest just using LayoutTests/jsc and modifying platform/chromium/TestExpectations to include a line like "jsc [ WontFix ]".

In particular, we don't want to modify default_baseline_search_path() to include "platform/jsc" at all, since it's not part of the search path in the sense of the other platform dirs.
Comment 3 Michael Pruett 2012-12-08 14:06:55 PST
Created attachment 178379 [details]
Patch
Comment 4 Michael Pruett 2012-12-08 14:11:52 PST
Created attachment 178380 [details]
Patch
Comment 5 WebKit Review Bot 2012-12-08 14:14:54 PST
Attachment 178380 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'LayoutTests/ChangeLog', u'La..." exit_code: 1
LayoutTests/platform/chromium/TestExpectations:4233:  Path does not exist.  [test/expectations] [5]
LayoutTests/platform/chromium/TestExpectations:4234:  Path does not exist.  [test/expectations] [5]
Total errors found: 2 in 11 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Build Bot 2012-12-08 14:22:33 PST
Comment on attachment 178380 [details]
Patch

Attachment 178380 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/15219276
Comment 7 Build Bot 2012-12-08 14:44:45 PST
Comment on attachment 178380 [details]
Patch

Attachment 178380 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/15218371
Comment 8 Michael Pruett 2012-12-08 15:39:13 PST
Created attachment 178382 [details]
Patch
Comment 9 WebKit Review Bot 2012-12-08 15:40:47 PST
Attachment 178382 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'LayoutTests/ChangeLog', u'La..." exit_code: 1
LayoutTests/platform/chromium/TestExpectations:4233:  Path does not exist.  [test/expectations] [5]
LayoutTests/platform/chromium/TestExpectations:4234:  Path does not exist.  [test/expectations] [5]
Total errors found: 2 in 11 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 Build Bot 2012-12-08 15:41:33 PST
Comment on attachment 178382 [details]
Patch

Attachment 178382 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/15218385
Comment 11 Build Bot 2012-12-08 16:06:47 PST
Comment on attachment 178382 [details]
Patch

Attachment 178382 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/15191802
Comment 12 Michael Pruett 2012-12-08 16:18:36 PST
Created attachment 178385 [details]
Patch
Comment 13 Alexey Proskuryakov 2012-12-08 20:29:19 PST
JavaScript tests go to fast/js, please don't add another directory for those.
Comment 14 Michael Pruett 2012-12-10 11:02:48 PST
Created attachment 178593 [details]
Patch

The V8 equivalent of this test is in platform/chromium/fast/storage, so I've placed the JSC test in fast/storage.
Comment 15 Alec Flett 2012-12-10 11:22:13 PST
I don't suppose there's any way to share the code that's common in the tests between JSC and V8? Of course that makes port-specific fixes hard. 

Maybe have cross-references in the comments? i.e. "See LayoutTests/platform/chromium/fast/storage/serialized-script-value.js"?

I defer to WebKit reviewers here, but as the author of the V8 side of the tests, I'd like to encourage collaboration and improvement over time here.
Comment 16 Michael Pruett 2012-12-10 16:21:36 PST
Created attachment 178663 [details]
Patch

I've moved the utility functions common to both the V8 and JSC tests to a common source file. I've also added comments to both the V8 and JSC layout tests mentioning the existence of the other test.
Comment 17 WebKit Review Bot 2012-12-11 12:59:41 PST
Comment on attachment 178663 [details]
Patch

Clearing flags on attachment: 178663

Committed r137346: <http://trac.webkit.org/changeset/137346>
Comment 18 WebKit Review Bot 2012-12-11 12:59:46 PST
All reviewed patches have been landed.  Closing bug.