We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
amp-video
1 parent aa493ca commit 74f5ef3Copy full SHA for 74f5ef3
extensions/amp-video/0.1/test/test-amp-video.js
@@ -66,7 +66,11 @@ describes.realWin(
66
opt_beforeLayoutCallback(v, impl);
67
}
68
try {
69
- await v.layoutCallback();
+ await Promise.race([
70
+ v.layoutCallback(),
71
+ // Caps the layoutCallback in test to 500ms to avoid tests timing out due to prolonged layouts.
72
+ Services.timerFor(win).promise(500),
73
+ ]);
74
return v;
75
} catch (e) {
76
// Ignore failed to load errors since sources are fake.
0 commit comments