Commit cecccd83 authored by Yutaka Hirano's avatar Yutaka Hirano Committed by Commit Bot

Add manual timeout steps to coep/none.https.html

In order to investigate timeout flakiness on the file, add

t.step_timeout(t.unreached_func('timeout'), 10 * 1000);

for each test case.

Bug: 1013596
Change-Id: Ia12c65b8c7afcee2da4499dfb83d1590386111cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402719
Auto-Submit: Yutaka Hirano <yhirano@chromium.org>
Commit-Queue: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: default avatarMakoto Shimazu <shimazu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805675}
parent 5083fb9d
...@@ -11,6 +11,7 @@ const HOST = get_host_info(); ...@@ -11,6 +11,7 @@ const HOST = get_host_info();
const BASE = new URL("resources", location).pathname; const BASE = new URL("resources", location).pathname;
async_test(t => { async_test(t => {
t.step_timeout(t.unreached_func('timeout'), 10 * 1000);
const frame = document.createElement("iframe"); const frame = document.createElement("iframe");
t.add_cleanup(() => frame.remove()); t.add_cleanup(() => frame.remove());
frame.onload = t.step_func_done(() => { frame.onload = t.step_func_done(() => {
...@@ -22,6 +23,7 @@ async_test(t => { ...@@ -22,6 +23,7 @@ async_test(t => {
}, `"none" top-level: navigating a frame to "none" should succeed`); }, `"none" top-level: navigating a frame to "none" should succeed`);
async_test(t => { async_test(t => {
t.step_timeout(t.unreached_func('timeout'), 10 * 1000);
const frame = document.createElement("iframe"); const frame = document.createElement("iframe");
t.add_cleanup(() => frame.remove()); t.add_cleanup(() => frame.remove());
const blank = "/common/blank.html"; const blank = "/common/blank.html";
...@@ -42,6 +44,7 @@ async_test(t => { ...@@ -42,6 +44,7 @@ async_test(t => {
}, `"none" top-level: navigating a frame from "require-corp" to "none" should succeed`); }, `"none" top-level: navigating a frame from "require-corp" to "none" should succeed`);
async_test(t => { async_test(t => {
t.step_timeout(t.unreached_func('timeout'), 10 * 1000);
const w = window.open(`resources/navigate-none.sub.html?to=navigate-require-corp.sub.html`, "window_name"); const w = window.open(`resources/navigate-none.sub.html?to=navigate-require-corp.sub.html`, "window_name");
t.add_cleanup(() => w.close()); t.add_cleanup(() => w.close());
...@@ -53,6 +56,7 @@ async_test(t => { ...@@ -53,6 +56,7 @@ async_test(t => {
}, `"none" top-level: navigating a frame back from "require-corp" should succeed`); }, `"none" top-level: navigating a frame back from "require-corp" should succeed`);
async_test(t => { async_test(t => {
t.step_timeout(t.unreached_func('timeout'), 10 * 1000);
let pageLoaded = false; let pageLoaded = false;
const bc = new BroadcastChannel(token()); const bc = new BroadcastChannel(token());
let finished = false; let finished = false;
...@@ -83,6 +87,7 @@ async_test(t => { ...@@ -83,6 +87,7 @@ async_test(t => {
}, `"require-corp" top-level noopener popup: navigating to "none" should succeed`); }, `"require-corp" top-level noopener popup: navigating to "none" should succeed`);
async_test(t => { async_test(t => {
t.step_timeout(t.unreached_func('timeout'), 10 * 1000);
const frame = document.createElement("iframe"); const frame = document.createElement("iframe");
const id = token(); const id = token();
t.add_cleanup(() => frame.remove()); t.add_cleanup(() => frame.remove());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment