Title: [195229] trunk/LayoutTests/imported/w3c
- Revision
- 195229
- Author
- calva...@igalia.com
- Date
- 2016-01-18 05:54:39 -0800 (Mon, 18 Jan 2016)
Log Message
[Streams API] Import tests updated to Jan 13 2016
https://bugs.webkit.org/show_bug.cgi?id=153059
Reviewed by Youenn Fablet.
Update tests after merge of https://github.com/whatwg/streams/pull/420.
* web-platform-tests/streams-api/README.txt: Updated last version.
* web-platform-tests/streams-api/readable-streams/bad-strategies.js: Updated.
Modified Paths
Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (195228 => 195229)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2016-01-18 13:54:13 UTC (rev 195228)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2016-01-18 13:54:39 UTC (rev 195229)
@@ -1,3 +1,15 @@
+2016-01-18 Xabier Rodriguez Calvar <calva...@igalia.com>
+
+ [Streams API] Import tests updated to Jan 13 2016
+ https://bugs.webkit.org/show_bug.cgi?id=153059
+
+ Reviewed by Youenn Fablet.
+
+ Update tests after merge of https://github.com/whatwg/streams/pull/420.
+
+ * web-platform-tests/streams-api/README.txt: Updated last version.
+ * web-platform-tests/streams-api/readable-streams/bad-strategies.js: Updated.
+
2016-01-15 Chris Dumez <cdu...@apple.com>
Drop obsolete HTMLDocument.width / height attributes
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/README.txt (195228 => 195229)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/README.txt 2016-01-18 13:54:13 UTC (rev 195228)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/README.txt 2016-01-18 13:54:39 UTC (rev 195229)
@@ -3,4 +3,4 @@
There is a plan to move these tests to web-platform-tests repository so from that moment on this importation will be
automatic.
-Current version: https://github.com/whatwg/streams/tree/2e7f87e45806d58114592c923aed299798d10161/reference-implementation/web-platform-tests.
+Current version: https://github.com/whatwg/streams/tree/7f19175415d9b57af04cb8c2cd355ca38101f0aa/reference-implementation/web-platform-tests.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-strategies.js (195228 => 195229)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-strategies.js 2016-01-18 13:54:13 UTC (rev 195228)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-strategies.js 2016-01-18 13:54:39 UTC (rev 195229)
@@ -19,9 +19,10 @@
}, 'Readable stream: throwing strategy.size getter');
-test(() => {
+promise_test(t => {
- const theError = new Error('a unique string');
+ const controllerError = { name: 'controller error' };
+ const thrownError = { name: 'thrown error' };
let controller;
const rs = new ReadableStream(
@@ -32,22 +33,22 @@
},
{
size() {
- controller.error(theError);
- throw theError;
+ controller.error(controllerError);
+ throw thrownError;
},
highWaterMark: 5
}
);
- assert_throws(theError, () => {
- controller.enqueue('a');
- }, 'enqueue should re-throw the error');
+ assert_throws(thrownError, () => controller.enqueue('a'), 'enqueue should re-throw the error');
+ return promise_rejects(t, controllerError, rs.getReader().closed);
+
}, 'Readable stream: strategy.size errors the stream and then throws');
-test(() => {
+promise_test(t => {
- const theError = new Error('a unique string');
+ const theError = { name: 'my error' };
let controller;
const rs = new ReadableStream(
@@ -65,12 +66,10 @@
}
);
- try {
- controller.enqueue('a');
- } catch (error) {
- assert_equals(error.name, 'RangeError', 'enqueue should throw a RangeError');
- }
+ assert_throws(new RangeError(), () => controller.enqueue('a'), 'enqueue should throw a RangeError');
+ return promise_rejects(t, theError, rs.getReader().closed, 'closed should reject with the error');
+
}, 'Readable stream: strategy.size errors the stream and then returns Infinity');
promise_test(() => {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes