Commit Graph

160 Commits

Author SHA1 Message Date
Andrew Sutherland
546c79ec45 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
955d7f2456 Bug 1033126 - Convert xpcshell tests to use mozlog.structured format for logging.;r=ted 2014-10-22 15:53:42 -04:00
Andrew Halberstadt
2da4ee197d Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Shih-Chiang Chien
62c57a8d94 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
b345f02fda Bug 1044737 - 3/3: fix NetworkStatsService::networkStatsAvailable and test cases. r=vchang 2014-08-01 15:08:42 +08:00
Ms2ger
e99bd12a4b 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
2bf74b839c Backed out changeset 506038ddee2c (bug 1000040) for causing bug 1035172 2014-07-10 13:27:49 +08:00
John Shih
e86c00dca8 Bug 1000040 - Part 3: Test cases. r=vchang, f=vyang 2014-06-12 16:07:23 +08:00
Henry Chang
73aad21522 Bug 937528 - Initialize port and host for the tcp server accepted socket. r=jduell 2013-12-19 11:21:12 +08:00
John Shih
2fb183db40 Bug 1023341 - Fix test_networkstats_alarm.html. r=gene 2014-06-26 16:51:45 +08:00
Ed Morley
c6585f3090 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
6eab22341b 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
c11b00c1fb Bug 953208 - Disable test_tcpserversocket.js on OSX for frequent failures. 2014-06-07 01:06:24 -04:00
John Shih
eea5e5f2e8 Bug 986837 - Part 5: Expose MozNetworkInterface for testing. r=bzbarsky
DONTBUILD
2014-04-07 18:22:21 +08:00
Ryan VanderMeulen
1560a48c7d Backed out changeset 6701ef0c75b4 for landing with the wrong bug number. r=bzbarsky 2014-05-05 10:29:29 -04:00
John Shih
62bcfd6fe3 Bug 986836 - Part 5: Expose MozNetworkInterface for testing. r=bzbarsky 2014-04-07 18:22:21 +08:00
John Shih
be30dbebed Bug 986837 - Part 2: Port MozNetworkStatsInterface to WebIDL. r=bzbarsky 2014-05-05 11:55:01 +08:00
John Shih
644c9b6922 Bug 993834 - Fix error in NetworkStatsDB & Test cases. r=gene 2014-04-09 18:03:02 +08:00
John Shih
6aa0595d71 Bug 960426 - Part 2: Modifications for IDL change. r=blassey 2014-03-05 11:54:55 +08:00
John Shih
f600a7bd0b Bug 964228 - Part 2: Tests update. r=albert 2014-03-06 10:03:35 +08:00
Bill McCloskey
aa5f40a77e 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
a3277d291d 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
f4f6bf8e4d 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
7193069fa0 Backed out changeset d6261f65070a 2014-03-13 15:52:27 -07:00
Bill McCloskey
69a746922b 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
9a59a5c96d Bug 971132 - B2G mochitests should use the new manifest format; r=jmaher 2014-03-06 13:42:43 -05:00
Vaibhav Agarwal
d109cb3fc7 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
b6e0e3806a Bug 966244 - Part 2: Update tests. r=gene 2014-02-11 22:05:06 +01:00
Albert Crespell
0f3a536af8 Bug 965319 - Part 2: Update tests. r=gene 2014-02-09 12:43:49 +01:00
Albert Crespell
8e7a6f5cf9 Bug 964270 - Part 2: Update tests. r=gene 2014-01-30 21:24:40 +01:00
Andrea Marchesini
576438474b Bug 960945 - MozConnection should be NoInterfaceObject, r=bz 2014-02-03 16:16:27 +00:00
Albert Crespell
ce258372f8 Bug 961162 - Fix intermittent failures in test_networkstats_service_proxy.js. r=gene 2014-01-27 13:16:01 +01:00
Albert Crespell
c193f7d7b5 Bug 962496 - Intermittent test_networkstats_db.js test failed. r=gene 2014-01-22 11:36:51 +01:00
Edgar Chen
5284ea1427 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
8338ab76e4 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
972f9a3c01 Backed out changeset 10348da2438a (Bug 956655) 2014-01-17 13:08:59 +08:00
Edgar Chen
713b19196f 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
b05202b7e2 Merge inbound to m-c. 2014-01-16 15:06:12 -05:00
Andrea Marchesini
826b2527bb Bug 952084 - Porting nsIDOMMozConnection to WebIDL, r=ehsan, r=bz 2014-01-16 11:53:48 +01:00
Hsin-Yi Tsai
bd2614e037 Bug 953005 - part2 - test_mobile_connections_array_uninitialized 2014-01-15 12:17:03 +08:00
Edgar Chen
15ee364f7d 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
91e5172240 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
95c21b2c67 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
6249856c64 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
c14e842504 Bug 922926 - Part 4: Tests. r=gene, r=albert 2013-11-22 11:51:11 +08:00
Ms2ger
277894a69f Bug 939048 - Part a: Move mochitests to manifests in dom/network; r=jst 2013-12-31 10:06:10 +01:00
Jessica Jong
b1d54478fd 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
Albert Crespell
d4f80b1713 Bug 858005 - Part 4: Tests. r=gene 2013-05-31 07:23:04 +02:00
Edgar Chen
e3e8a9ce5e Bug 946557 - Bring test_icc_info.js back in automation. r=allstars.chh 2013-12-05 11:56:21 +08:00
Ryan VanderMeulen
42bf063001 Backed out changesets 9906961b21af and b2b20bc6576a (bug 946178) because they didn't prevent the crashes. DONTBUILD CLOSED TREE 2013-12-04 17:23:58 -05:00