Bug 931722 - Part 3: Add test cases for call mute test. r=hsinyi
authorShawn Ku <sku@mozilla.com>
Wed, 27 Nov 2013 15:47:29 +0800
changeset 173907 10de0a51d2ba44208410bf0829796c794f0369c3
parent 173906 3117fa37236a7be1f21053d482ebcc15f59d044f
child 173908 bc50783a4cf7dd099e7c447adc17f67280fd78c3
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs931722
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 931722 - Part 3: Add test cases for call mute test. r=hsinyi
dom/telephony/test/marionette/manifest.ini
dom/telephony/test/marionette/test_call_mute.js
--- a/dom/telephony/test/marionette/manifest.ini
+++ b/dom/telephony/test/marionette/manifest.ini
@@ -39,8 +39,9 @@ disabled = Bug 821966
 [test_redundant_operations.js]
 disabled = Bug 821927
 [test_multiple_hold.js]
 disabled = Bug 821958
 [test_outgoing_emergency_in_airplane_mode.js]
 [test_emergency_label.js]
 [test_conference.js]
 [test_dsds_default_service_id.js]
+[test_call_mute.js]
new file mode 100644
--- /dev/null
+++ b/dom/telephony/test/marionette/test_call_mute.js
@@ -0,0 +1,21 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+MARIONETTE_TIMEOUT = 60000;
+MARIONETTE_HEAD_JS = 'head.js';
+
+function test_call_mute() {
+  telephony.muted = true;
+  is(telephony.muted, true);
+  telephony.muted = false;
+  is(telephony.muted, false);
+  cleanUp();
+}
+
+function cleanUp() {
+  finish();
+}
+
+startTest(function() {
+  test_call_mute();
+});