Bug 61819 - nrwt: make webaudio work w/o content-length header
Summary: nrwt: make webaudio work w/o content-length header
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 16:25 PDT by Dirk Pranke
Modified: 2011-06-03 14:00 PDT (History)
6 users (show)

See Also:


Attachments
Patch (6.32 KB, patch)
2011-05-31 16:27 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
restore newlines in DRT output (6.35 KB, patch)
2011-05-31 17:22 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
update patch w/ feedback from Tony (6.73 KB, patch)
2011-06-01 14:05 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2011-05-31 16:25:48 PDT
nrwt: make webaudio work w/o content-length header
Comment 1 Dirk Pranke 2011-05-31 16:27:42 PDT
Created attachment 95506 [details]
Patch
Comment 2 Dirk Pranke 2011-05-31 16:34:00 PDT
This patch reworks the logic used by the webkit implementations for parsing the output from DRT. Chromium uses a completely different mechanism for audio so it isn't affected.

Testing this revealed related issues with --print trace-everything and the mock_drt implementation that weren't handling audio properly, so those have been rolled into this as well.
Comment 3 Dirk Pranke 2011-05-31 17:22:18 PDT
Created attachment 95517 [details]
restore newlines in DRT output
Comment 4 Tony Chang 2011-06-01 09:48:40 PDT
Comment on attachment 95517 [details]
restore newlines in DRT output

View in context: https://bugs.webkit.org/attachment.cgi?id=95517&action=review

> Tools/Scripts/webkitpy/layout_tests/layout_package/printing.py:319
> +        self._print_baseline(filename, '.txt')
> +        self._print_baseline(filename, '.wav')
> +        self._print_baseline(filename, '.png')

Nit: Maybe make this a for loop (one less line of code)?

> Tools/Scripts/webkitpy/layout_tests/layout_package/single_test_runner.py:150
> +        if driver_output.text:
> +            self._save_baseline_data(driver_output.text, ".txt",

Nit: Should we just have _safe_baseline_data bail out if the first param is None?
Comment 5 Dirk Pranke 2011-06-01 10:31:54 PDT
Comment on attachment 95517 [details]
restore newlines in DRT output

View in context: https://bugs.webkit.org/attachment.cgi?id=95517&action=review

>> Tools/Scripts/webkitpy/layout_tests/layout_package/printing.py:319
>> +        self._print_baseline(filename, '.png')
> 
> Nit: Maybe make this a for loop (one less line of code)?

Will do.

>> Tools/Scripts/webkitpy/layout_tests/layout_package/single_test_runner.py:150
>> +            self._save_baseline_data(driver_output.text, ".txt",
> 
> Nit: Should we just have _safe_baseline_data bail out if the first param is None?

Will do. I think it's a bit of a toss-up which way is clearer.
Comment 6 Dirk Pranke 2011-06-01 14:05:34 PDT
Created attachment 95658 [details]
update patch w/ feedback from Tony
Comment 7 Dirk Pranke 2011-06-01 14:09:14 PDT
Committed r87847: <http://trac.webkit.org/changeset/87847>
Comment 8 Ademar Reis 2011-06-03 14:00:56 PDT
Revision r87847 cherry-picked into qtwebkit-2.2 with commit c783730 <http://gitorious.org/webkit/qtwebkit/commit/c783730>