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

Unified Diff: LayoutTests/battery-status/detached-no-crash-expected.txt

Issue 915033002: BatteryManager.getBattery(): gracefully bail on context-detached use. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tidying up test Created 5 years, 10 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
Index: LayoutTests/battery-status/detached-no-crash-expected.txt
diff --git a/LayoutTests/fast/dom/Window/Location/set-location-after-close-expected.txt b/LayoutTests/battery-status/detached-no-crash-expected.txt
similarity index 55%
copy from LayoutTests/fast/dom/Window/Location/set-location-after-close-expected.txt
copy to LayoutTests/battery-status/detached-no-crash-expected.txt
index 1b11e3a55a2feada5ca6b5979a419b15db3cd51d..99fc3330e27584c69606b7264bbe7bdf1915d125 100644
--- a/LayoutTests/fast/dom/Window/Location/set-location-after-close-expected.txt
+++ b/LayoutTests/battery-status/detached-no-crash-expected.txt
@@ -1,9 +1,11 @@
main frame - has 1 onunload handler(s)
-Updating window.location after the window has been closed, without crashing.
+Accessing navigator.getBattery() on a closed window.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+PASS typeof(nav.getBattery()) == 'object' is true
+PASS nav.getBattery() is undefined.
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698