Skip to content

Commit

Permalink
Disable tests that now fail on Node 5.6.0
Browse files Browse the repository at this point in the history
This is due to a regression in Node's HTTP parser that makes it less capable than browsers: nodejs/http-parser#281. Closes #1380. We probably won't be able to fix this until Node either fixes the regression or makes HTTP header parsing customizable.
  • Loading branch information
domenic committed Feb 16, 2016
1 parent 6f3b7b6 commit 90bef3d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
10 changes: 5 additions & 5 deletions test/web-platform-tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ const runWebPlatformTest = require("./run-web-platform-test")(exports, path.reso
"XMLHttpRequest/event-upload-progress.htm",
"XMLHttpRequest/formdata-blob.htm",
"XMLHttpRequest/formdata.htm",
"XMLHttpRequest/getallresponseheaders-cookies.htm",
// "XMLHttpRequest/getallresponseheaders-cookies.htm", // https://github.com/nodejs/http-parser/issues/281
"XMLHttpRequest/getallresponseheaders-status.htm",
"XMLHttpRequest/getresponseheader-case-insensitive.htm",
// "XMLHttpRequest/getresponseheader-case-insensitive.htm", // https://github.com/nodejs/http-parser/issues/281
"XMLHttpRequest/getresponseheader-chunked-trailer.htm",
"XMLHttpRequest/getresponseheader-cookies-and-more.htm",
// "XMLHttpRequest/getresponseheader-cookies-and-more.htm", // https://github.com/nodejs/http-parser/issues/281
"XMLHttpRequest/getresponseheader-error-state.htm",
"XMLHttpRequest/getresponseheader-server-date.htm",
"XMLHttpRequest/getresponseheader-special-characters.htm",
// "XMLHttpRequest/getresponseheader-server-date.htm", // https://github.com/nodejs/http-parser/issues/281
// "XMLHttpRequest/getresponseheader-special-characters.htm", // https://github.com/nodejs/http-parser/issues/281
"XMLHttpRequest/getresponseheader-unsent-opened-state.htm",
"XMLHttpRequest/open-after-abort.htm",
"XMLHttpRequest/open-after-setrequestheader.htm",
Expand Down
9 changes: 7 additions & 2 deletions test/web-platform-tests/run-to-upstream-web-platform-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ function createJsdom(urlPrefix, testPath, t) {
});

window.add_completion_callback((tests, harnessStatus) => {
t.ok(harnessStatus.status !== 2, "test harness should not timeout");
window.close();
t.ok(harnessStatus.status !== 2, "test harness should not timeout: " + testPath);

// This needs to be delayed since some tests do things even after calling done().
process.nextTick(() => {
window.close();
});

t.done();
});
};
Expand Down
2 changes: 1 addition & 1 deletion test/web-platform-tests/run-web-platform-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function createJsdom(urlPrefix, testPath, t) {
});

window.add_completion_callback((tests, harnessStatus) => {
t.ok(harnessStatus.status !== 2, "test harness should not timeout");
t.ok(harnessStatus.status !== 2, "test harness should not timeout: " + testPath);

// This needs to be delayed since some tests do things even after calling done().
process.nextTick(() => {
Expand Down

0 comments on commit 90bef3d

Please sign in to comment.