Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(873)

Unified Diff: third_party/WebKit/LayoutTests/app_banner/testrunner-resolve-crash.html

Issue 1886763002: Fix crash when AppBannerClient is null when resolveBeforeInstallPromptPromise is called. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no-find-copies Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/app_banner/testrunner-resolve-crash.html
diff --git a/third_party/WebKit/LayoutTests/app_banner/testrunner-resolve-crash.html b/third_party/WebKit/LayoutTests/app_banner/testrunner-resolve-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..bea62b8a2d0efd87339608391add2e0a31d3f14d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/app_banner/testrunner-resolve-crash.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ testRunner.resolveBeforeInstallPromptPromise(0, 'foo');
+}, 'Test that calling resolveBeforeInstallPromptPromise does not crash');
+</script>
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698