Title: [91709] trunk/Tools
- Revision
- 91709
- Author
- [email protected]
- Date
- 2011-07-25 15:23:05 -0700 (Mon, 25 Jul 2011)
Log Message
Update new-run-webkit-tests to accomodate binary audio data
https://bugs.webkit.org/show_bug.cgi?id=65135
Reviewed by Dirk Pranke.
* Scripts/webkitpy/layout_tests/port/chromium.py:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (91708 => 91709)
--- trunk/Tools/ChangeLog 2011-07-25 22:16:39 UTC (rev 91708)
+++ trunk/Tools/ChangeLog 2011-07-25 22:23:05 UTC (rev 91709)
@@ -1,5 +1,14 @@
2011-07-25 Chris Rogers <[email protected]>
+ Update new-run-webkit-tests to accomodate binary audio data
+ https://bugs.webkit.org/show_bug.cgi?id=65135
+
+ Reviewed by Dirk Pranke.
+
+ * Scripts/webkitpy/layout_tests/port/chromium.py:
+
+2011-07-25 Chris Rogers <[email protected]>
+
Update Chromium DRT to output binary (instead of base64-encoded) data for web audio testing
https://bugs.webkit.org/show_bug.cgi?id=65039
Modified: trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py (91708 => 91709)
--- trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py 2011-07-25 22:16:39 UTC (rev 91708)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py 2011-07-25 22:23:05 UTC (rev 91709)
@@ -524,6 +524,8 @@
has_audio = True
elif line.startswith("Content-Transfer-Encoding: base64"):
has_base64 = True
+ elif line.startswith("Content-Length:"):
+ pass
elif actual_uri:
output.append(line)
else:
@@ -540,7 +542,7 @@
if has_base64:
audio_bytes = base64.b64decode(''.join(output))
else:
- audio_bytes = ''.join(output)
+ audio_bytes = ''.join(output).rstrip()
else:
text = ''.join(output)
if not text:
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes