Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…platform-tests#36605)

[WPT] Remove some 3-second sleeps in test cases
https://commits.webkit.org/255885@main
  • Loading branch information
brentfulgham authored Oct 22, 2022
1 parent 8d4c65f commit d3ab8c1
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
const uid = token();
const win = window.open(`./support/preload-csp-report.https.sub.html?uid=${uid}`);
t.add_cleanup(() => win.close());
await wait(3000);
const reports = await pollReports(endpoint, uid);
const failures = reports.filter(r => r['csp-report']['blocked-uri'].endsWith('fail.png'));
assert_equals(failures.length, 2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
});

// Wait for report to be received.
await wait(3000);
const reports = await pollReports(endpoint, id);
checkReportExists(reports, 'csp-violation', location.href);

Expand Down
1 change: 0 additions & 1 deletion reporting/cross-origin-reports-isolated.https.sub.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
});

// Wait for 2 reports to be received.
await wait(3000);
const reports = await pollReports(endpoint, id, 2);
assert_equals(reports.length, 2);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
// Load a document that generates report into iframe. Server should return
// Reporting-Endpoints header.
const w = window.open(document_url, "test");
await wait(1000);
let reports = await pollReports(endpoint, report_id);
// Verify that reporting is configured on the document.
assert_equals(reports.length, 1);
// reload opened window. This time server will not return
// Reporting-Endpoints header.
w.location.reload();
await wait(1000);
reports = await pollReports(endpoint, report_id);
// Verify no reports are sent this time.
assert_equals(reports.length, 0);
Expand Down
1 change: 0 additions & 1 deletion reporting/same-origin-report-credentials.https.sub.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
});

// Wait for report to be received.
await wait(3000);
const reports = await pollReports(endpoint, id);
checkReportExists(reports, 'csp-violation', location.href);

Expand Down

0 comments on commit d3ab8c1

Please sign in to comment.