Bug 104423

Summary: [JSC] Add tests for explicit serialization values
Product: WebKit Reporter: Michael Pruett <michael>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, alecflett, ap, dbates, dpranke, jsbell, oliver, philn, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
dpranke: review-
Patch
none
Patch
buildbot: commit-queue-
Patch
buildbot: commit-queue-
Patch
none
Patch
none
Patch none

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.