From 8456c63a6892c34698ccf587f31e9829d3114dd1 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Sun, 28 Aug 2016 16:26:52 -0700 Subject: [PATCH] Bug 1298979 - Add test to verify that sending a message and unloading works r=billm Checks what happens before closing a window or removing a frame: - Tests that sendMessage/connect is received by the extension. - Tests that any responses from the extension is not received by the sending script (of the closing context). MozReview-Commit-ID: 9VwCpRmaZOO --HG-- extra : rebase_source : f4103a10547835fec2a45086c39b3434937bcdce --- .../extensions/test/mochitest/mochitest.ini | 1 + .../test/mochitest/test_ext_unload_frame.html | 158 ++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 toolkit/components/extensions/test/mochitest/test_ext_unload_frame.html diff --git a/toolkit/components/extensions/test/mochitest/mochitest.ini b/toolkit/components/extensions/test/mochitest/mochitest.ini index 8b143ddbc7b8..624dd41d9bbc 100644 --- a/toolkit/components/extensions/test/mochitest/mochitest.ini +++ b/toolkit/components/extensions/test/mochitest/mochitest.ini @@ -85,6 +85,7 @@ skip-if = os == 'android' # Android does not currently support tabs. [test_ext_background_teardown.html] [test_ext_tab_teardown.html] skip-if = (os == 'android') # Android does not support tabs API. Bug 1260250 +[test_ext_unload_frame.html] [test_ext_i18n.html] skip-if = (os == 'android') # Bug 1258975 on android. [test_ext_web_accessible_resources.html] diff --git a/toolkit/components/extensions/test/mochitest/test_ext_unload_frame.html b/toolkit/components/extensions/test/mochitest/test_ext_unload_frame.html new file mode 100644 index 000000000000..1ae6262b3d48 --- /dev/null +++ b/toolkit/components/extensions/test/mochitest/test_ext_unload_frame.html @@ -0,0 +1,158 @@ + + + + WebExtensions test + + + + + + + + + + +