dom/voicemail/test/marionette/test_voicemail_statuschanged.py

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 from marionette_test import MarionetteTestCase
     2 import os
     4 class TestVoicemailStatusChanged(MarionetteTestCase):
     6     def testStatusChanged(self):
     7         this_dir = os.path.abspath(os.path.dirname(__file__))
     8         pdu_builder_path = os.path.join(this_dir, "pdu_builder.js")
     9         self.marionette.import_script(pdu_builder_path)
    11         test_path = os.path.join(this_dir, "test_voicemail_statuschanged.js")
    12         test = open(test_path, "r").read()
    13         self.marionette.set_script_timeout(30000)
    14         self.marionette.execute_async_script(test)

mercurial