Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

feat(webkit): roll to 1029 (#222)

Pavel Feldman856787a8e612
diff --git a/package.json b/package.json
index f068451998..0ba2eddf2f 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"playwright": {
"chromium_revision": "719491",
"firefox_revision": "1004",
- "webkit_revision": "1027"
+ "webkit_revision": "1029"
},
"scripts": {
"unit": "node test/test.js",
diff --git a/test/network.spec.js b/test/network.spec.js
index a9c9389e25..b9d736db62 100644
--- a/test/network.spec.js
+++ b/test/network.spec.js
@@ -246,12 +246,16 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
expect(failedRequests[0].url()).toContain('one-style.css');
expect(failedRequests[0].response()).toBe(null);
expect(failedRequests[0].resourceType()).toBe('stylesheet');
- if (CHROME)
+ if (CHROME) {
expect(failedRequests[0].failure().errorText).toBe('net::ERR_INVALID_HTTP_RESPONSE');
- else if (WEBKIT)
- expect(failedRequests[0].failure().errorText).toBe('Message Corrupt');
- else
+ } else if (WEBKIT) {
+ if (process.platform === 'darwin')
+ expect(failedRequests[0].failure().errorText).toBe('The network connection was lost.');
+ else
+ expect(failedRequests[0].failure().errorText).toBe('Message Corrupt');
+ } else {
expect(failedRequests[0].failure().errorText).toBe('NS_ERROR_FAILURE');
+ }
expect(failedRequests[0].frame()).toBeTruthy();
});
it('Page.Events.RequestFinished', async({page, server}) => {