Commit Graph

163 Commits

Author SHA1 Message Date
Ryan VanderMeulen
4cf26e0999 Bug 1061174- Disable test_udpsocket.html on B2G debug for frequent failures. 2014-11-11 15:41:16 -05:00
Ryan VanderMeulen
8087f7b4d2 Bug 958689 - Disable test_networkstats_alarms.html, test_networkstats_basics.html, and test_networkstats_enabled_no_perm.html on B2G for ongoing intermittent failures. 2014-11-11 15:41:16 -05:00
Albert Crespell
c23493e24b Bug 1083107 - Intermittent too much recursion error in NetworkStats API. r=vchang 2014-11-03 17:13:51 +01:00
Andrew Sutherland
3d19057ccd Bug 1087145 - Move mozTCPSocket/TCPSocket unit tests from xpcshell tests to mochitest-plain tests. r=jdm
Most of the TCPSocket and TCPServerSocket coverage was implemented exclusively
in Chrome-privileged xpcshell tests.  This failed to provide coverage for the
key use case of content-privileged code using TCPSocket.

This cleans up the test implementation and migrates them to mochitests.
Coverage is improved as evidenced by two tested TCPServerSocket issues that were
addressed in this patch:
- ArrayBuffers weren't being created in the content page's context, so
  exceptions would be thrown when accessed.
- 'drain' notifications were not being hooked up.

The following fix that lacks coverage that notices the fix was implemented:
- TCPServerSocket now properly propagates the appId for network usage tracking.
2014-10-29 22:03:54 -04:00
Chris Manchester
fa3071b32b Bug 1033126 - Convert xpcshell tests to use mozlog.structured format for logging.;r=ted 2014-10-22 15:53:42 -04:00
Andrew Halberstadt
6fe6152e95 Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Shih-Chiang Chien
7a957ee1c9 Bug 745283 - Part 4: WebIDL binding for UDPSocket API. r+sr=smaug, r=khuey, r=baku 2014-04-14 09:21:26 +08:00
Vicamo Yang
8e487f198b Bug 1044737 - 3/3: fix NetworkStatsService::networkStatsAvailable and test cases. r=vchang 2014-08-01 15:08:42 +08:00
Ms2ger
d9e695483d Bug 1043963 - Collapse test-only moz.build files under dom/ into ancestor moz.build files; r=ted
There is very little benefit to having another layer of moz.build files, and
removing them will speed up the build a minimal amount. It also paves the way
for removing TEST_DIRS, which could simplify the build system somewhat.
2014-07-26 08:17:24 +02:00
Vicamo Yang
607ae23154 Backed out changeset 506038ddee2c (bug 1000040) for causing bug 1035172 2014-07-10 13:27:49 +08:00
John Shih
d47b4b3df0 Bug 1000040 - Part 3: Test cases. r=vchang, f=vyang 2014-06-12 16:07:23 +08:00
Henry Chang
c536ce434d Bug 937528 - Initialize port and host for the tcp server accepted socket. r=jduell 2013-12-19 11:21:12 +08:00
John Shih
73a60e46e3 Bug 1023341 - Fix test_networkstats_alarm.html. r=gene 2014-06-26 16:51:45 +08:00
Ed Morley
8d59b9aa4e Bug 1023341 - Disable test_networkstats_alarms.html on B2G for too many intermittent test failures
--HG--
extra : rebase_source : 11cc5584e6bb765587ca988531c8f131055c08d5
2014-06-19 09:50:50 +01:00
Gene Lian
76d27c4d35 Bug 958689 - Dump some logs for finding out the root cause of the intermittent error. r=albert 2014-06-10 11:44:36 +08:00
Ryan VanderMeulen
1d07dd66d4 Bug 953208 - Disable test_tcpserversocket.js on OSX for frequent failures. 2014-06-07 01:06:24 -04:00
John Shih
0b643ca7dd Bug 986837 - Part 5: Expose MozNetworkInterface for testing. r=bzbarsky
DONTBUILD
2014-04-07 18:22:21 +08:00
Ryan VanderMeulen
c382cad4d3 Backed out changeset 6701ef0c75b4 for landing with the wrong bug number. r=bzbarsky 2014-05-05 10:29:29 -04:00
John Shih
240f374d41 Bug 986836 - Part 5: Expose MozNetworkInterface for testing. r=bzbarsky 2014-04-07 18:22:21 +08:00
John Shih
656d2427da Bug 986837 - Part 2: Port MozNetworkStatsInterface to WebIDL. r=bzbarsky 2014-05-05 11:55:01 +08:00
John Shih
2f0fcd3401 Bug 993834 - Fix error in NetworkStatsDB & Test cases. r=gene 2014-04-09 18:03:02 +08:00
John Shih
e48d8ac267 Bug 960426 - Part 2: Modifications for IDL change. r=blassey 2014-03-05 11:54:55 +08:00
John Shih
545bc6abce Bug 964228 - Part 2: Tests update. r=albert 2014-03-06 10:03:35 +08:00
Bill McCloskey
d960718b48 Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 21:38:19 -07:00
Wes Kocher
62d61f05a8 Backed out changeset 88425ad0f06a (bug 982828) for introducing various mochitest-5 failures on a CLOSED TREE
* * *
Backed out changeset 94f9ebdc6662 (bug 982828)
2014-03-13 19:41:21 -07:00
Bill McCloskey
cff466f79f Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Bill McCloskey
624ffda758 Backed out changeset d6261f65070a 2014-03-13 15:52:27 -07:00
Bill McCloskey
a23e0f8633 Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Vaibhav Agarwal
b192b2603d Bug 971132 - B2G mochitests should use the new manifest format; r=jmaher 2014-03-06 13:42:43 -05:00
Vaibhav Agarwal
81f1ea0a18 Bug 970925 - convert testing/mochitest/android.json into skip-if statements in mochitest.ini files; r=jmaher 2014-02-15 04:53:02 -05:00
Albert Crespell
16ff07b731 Bug 966244 - Part 2: Update tests. r=gene 2014-02-11 22:05:06 +01:00
Albert Crespell
a381dc4a68 Bug 965319 - Part 2: Update tests. r=gene 2014-02-09 12:43:49 +01:00
Albert Crespell
305f6585e9 Bug 964270 - Part 2: Update tests. r=gene 2014-01-30 21:24:40 +01:00
Andrea Marchesini
6f9fcfbc3d Bug 960945 - MozConnection should be NoInterfaceObject, r=bz 2014-02-03 16:16:27 +00:00
Albert Crespell
d78222adc3 Bug 961162 - Fix intermittent failures in test_networkstats_service_proxy.js. r=gene 2014-01-27 13:16:01 +01:00
Albert Crespell
bfadc41714 Bug 962496 - Intermittent test_networkstats_db.js test failed. r=gene 2014-01-22 11:36:51 +01:00
Edgar Chen
7576dae8e6 Bug 956655 - Part 1: Move MobileConnection related files to dom/mobileconnection. r=smaug,khuey
--HG--
rename : dom/network/interfaces/nsIDOMMobileConnection.idl => dom/mobileconnection/interfaces/nsIDOMMobileConnection.idl
rename : dom/network/interfaces/nsIMobileConnectionProvider.idl => dom/mobileconnection/interfaces/nsIMobileConnectionProvider.idl
rename : dom/network/tests/marionette/manifest.ini => dom/mobileconnection/tests/marionette/manifest.ini
rename : dom/network/tests/marionette/test_call_barring_change_password.js => dom/mobileconnection/tests/marionette/test_call_barring_change_password.js
rename : dom/network/tests/marionette/test_call_barring_get_option.js => dom/mobileconnection/tests/marionette/test_call_barring_get_option.js
rename : dom/network/tests/marionette/test_call_barring_set_error.js => dom/mobileconnection/tests/marionette/test_call_barring_set_error.js
rename : dom/network/tests/marionette/test_mobile_connections_array_uninitialized.js => dom/mobileconnection/tests/marionette/test_mobile_connections_array_uninitialized.js
rename : dom/network/tests/marionette/test_mobile_data_connection.js => dom/mobileconnection/tests/marionette/test_mobile_data_connection.js
rename : dom/network/tests/marionette/test_mobile_data_location.js => dom/mobileconnection/tests/marionette/test_mobile_data_location.js
rename : dom/network/tests/marionette/test_mobile_data_state.js => dom/mobileconnection/tests/marionette/test_mobile_data_state.js
rename : dom/network/tests/marionette/test_mobile_icc_change.js => dom/mobileconnection/tests/marionette/test_mobile_icc_change.js
rename : dom/network/tests/marionette/test_mobile_last_known_network.js => dom/mobileconnection/tests/marionette/test_mobile_last_known_network.js
rename : dom/network/tests/marionette/test_mobile_mmi.js => dom/mobileconnection/tests/marionette/test_mobile_mmi.js
rename : dom/network/tests/marionette/test_mobile_networks.js => dom/mobileconnection/tests/marionette/test_mobile_networks.js
rename : dom/network/tests/marionette/test_mobile_operator_names.js => dom/mobileconnection/tests/marionette/test_mobile_operator_names.js
rename : dom/network/tests/marionette/test_mobile_preferred_network_type.js => dom/mobileconnection/tests/marionette/test_mobile_preferred_network_type.js
rename : dom/network/tests/marionette/test_mobile_preferred_network_type_by_setting.js => dom/mobileconnection/tests/marionette/test_mobile_preferred_network_type_by_setting.js
rename : dom/network/tests/marionette/test_mobile_roaming_preference.js => dom/mobileconnection/tests/marionette/test_mobile_roaming_preference.js
rename : dom/network/tests/marionette/test_mobile_set_radio.js => dom/mobileconnection/tests/marionette/test_mobile_set_radio.js
rename : dom/network/tests/marionette/test_mobile_voice_state.js => dom/mobileconnection/tests/marionette/test_mobile_voice_state.js
2013-12-24 15:55:52 +08:00
Jessica Jong
2e25fd93e2 Bug 939038 - [DSDS] Follow-up to Bug 814629: add test case for iccchange event. r=hsinyi 2014-01-14 02:19:00 +08:00
Edgar Chen
b2f55a1082 Backed out changeset 10348da2438a (Bug 956655) 2014-01-17 13:08:59 +08:00
Edgar Chen
876a576ec4 Bug 956655 - Part 1: Move MobileConnection related files to dom/mobileconnection. r=smaug,khuey
--HG--
rename : dom/network/interfaces/nsIDOMMobileConnection.idl => dom/mobileconnection/interfaces/nsIDOMMobileConnection.idl
rename : dom/network/interfaces/nsIMobileConnectionProvider.idl => dom/mobileconnection/interfaces/nsIMobileConnectionProvider.idl
rename : dom/network/src/MobileConnection.cpp => dom/mobileconnection/src/MobileConnection.cpp
rename : dom/network/src/MobileConnection.h => dom/mobileconnection/src/MobileConnection.h
rename : dom/network/src/MobileConnectionArray.cpp => dom/mobileconnection/src/MobileConnectionArray.cpp
rename : dom/network/src/MobileConnectionArray.h => dom/mobileconnection/src/MobileConnectionArray.h
rename : dom/network/tests/marionette/manifest.ini => dom/mobileconnection/tests/marionette/manifest.ini
rename : dom/network/tests/marionette/test_call_barring_change_password.js => dom/mobileconnection/tests/marionette/test_call_barring_change_password.js
rename : dom/network/tests/marionette/test_call_barring_get_option.js => dom/mobileconnection/tests/marionette/test_call_barring_get_option.js
rename : dom/network/tests/marionette/test_call_barring_set_error.js => dom/mobileconnection/tests/marionette/test_call_barring_set_error.js
rename : dom/network/tests/marionette/test_mobile_data_connection.js => dom/mobileconnection/tests/marionette/test_mobile_data_connection.js
rename : dom/network/tests/marionette/test_mobile_data_location.js => dom/mobileconnection/tests/marionette/test_mobile_data_location.js
rename : dom/network/tests/marionette/test_mobile_data_state.js => dom/mobileconnection/tests/marionette/test_mobile_data_state.js
rename : dom/network/tests/marionette/test_mobile_last_known_network.js => dom/mobileconnection/tests/marionette/test_mobile_last_known_network.js
rename : dom/network/tests/marionette/test_mobile_mmi.js => dom/mobileconnection/tests/marionette/test_mobile_mmi.js
rename : dom/network/tests/marionette/test_mobile_networks.js => dom/mobileconnection/tests/marionette/test_mobile_networks.js
rename : dom/network/tests/marionette/test_mobile_operator_names.js => dom/mobileconnection/tests/marionette/test_mobile_operator_names.js
rename : dom/network/tests/marionette/test_mobile_preferred_network_type.js => dom/mobileconnection/tests/marionette/test_mobile_preferred_network_type.js
rename : dom/network/tests/marionette/test_mobile_preferred_network_type_by_setting.js => dom/mobileconnection/tests/marionette/test_mobile_preferred_network_type_by_setting.js
rename : dom/network/tests/marionette/test_mobile_roaming_preference.js => dom/mobileconnection/tests/marionette/test_mobile_roaming_preference.js
rename : dom/network/tests/marionette/test_mobile_set_radio.js => dom/mobileconnection/tests/marionette/test_mobile_set_radio.js
rename : dom/network/tests/marionette/test_mobile_voice_state.js => dom/mobileconnection/tests/marionette/test_mobile_voice_state.js
2013-12-24 15:55:52 +08:00
Ryan VanderMeulen
208917083a Merge inbound to m-c. 2014-01-16 15:06:12 -05:00
Andrea Marchesini
db1bf21456 Bug 952084 - Porting nsIDOMMozConnection to WebIDL, r=ehsan, r=bz 2014-01-16 11:53:48 +01:00
Hsin-Yi Tsai
1f5808754d Bug 953005 - part2 - test_mobile_connections_array_uninitialized 2014-01-15 12:17:03 +08:00
Edgar Chen
1d82d58871 Bug 952043 - Part 4: Test cases for providing the network types supported by platform. r=hsinyi 2014-01-08 19:24:06 +08:00
Vicamo Yang
403507648e Bug 934125 - 2.a/3: s/\(\w\+\): function \(\w\+\)(/\1: function(/ . r=gene
RILDIRS="dom/cellbroadcast/ dom/icc/ dom/mobilemessage/ dom/network/ dom/telephony/ dom/voicemail/ dom/system/gonk/";
for f in `find $RILDIRS -type f -name \*.js -o -name \*.jsm`; do
  sed -i $f -e '/\w\+:/ {N; s/\(\w\+\):\s*function \(\w\+\)(/\1: function(/g}';
done
grep -nRe '\w\+: function \w\+(' $RILDIRS
2014-01-13 10:44:40 +08:00
Vicamo Yang
8239e28db4 Bug 934125 - 1/3: s/function \+(/function(/ . r=gene
RILDIRS="dom/cellbroadcast/ dom/icc/ dom/mobilemessage/ dom/network/ dom/telephony/ dom/voicemail/ dom/system/gonk/";
for f in `find $RILDIRS -type f -name \*.js -o -name \*.jsm`; do
  sed -i $f -e 's/function \+(/function(/';
done
2014-01-13 10:44:33 +08:00
Jessica Jong
0345db1566 Bug 952371 - Part 4: tests - [DSDS] mozMobileconnection.lastKnownNetwork and .lastKnownHomeNetwork aren't working. r=hsinyi 2014-01-08 18:54:34 +08:00
John Shih
fcac5cd0cc Bug 922926 - Part 4: Tests. r=gene, r=albert 2013-11-22 11:51:11 +08:00
Ms2ger
9e430e1ff6 Bug 939048 - Part a: Move mochitests to manifests in dom/network; r=jst 2013-12-31 10:06:10 +01:00
Jessica Jong
79568b2e5d Bug 944225 - Part 4: Add set/getPreferredNetworkType() API (tests). r=hsinyi
--HG--
rename : dom/network/tests/marionette/test_mobile_preferred_network_type.js => dom/network/tests/marionette/test_mobile_preferred_network_type_by_setting.js
2013-12-11 11:15:25 +08:00