Changeset 121754 in webkit
- Timestamp:
- Jul 3, 2012 3:12:47 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r121750 r121754 1 2012-07-03 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Improve test cases for network information APIs 4 https://bugs.webkit.org/show_bug.cgi?id=90162 5 6 Reviewed by Adam Barth. 7 8 Existing implementation doesn't test port implementation in network info APIs. 9 This patch lets test cases use bandwidth and metered functions implemented by port layer. 10 11 In addition, expected results need to check return type instead of property name. 12 13 * networkinformation/add-listener-from-callback-expected.txt: 14 * networkinformation/basic-all-types-of-events-expected.txt: 15 * networkinformation/basic-operation-expected.txt: 16 * networkinformation/multiple-frames-expected.txt: 17 * networkinformation/script-tests/add-listener-from-callback.js: 18 (checkNetworkInformation): 19 * networkinformation/script-tests/basic-all-types-of-events.js: 20 (checkNetworkInformation): 21 * networkinformation/script-tests/basic-operation.js: 22 * networkinformation/script-tests/multiple-frames.js: 23 (checkNetworkInformation): 24 (checkChildNetworkInformation): 25 * networkinformation/script-tests/updates.js: 26 (checkNetworkInformation): 27 * networkinformation/updates-expected.txt: 28 1 29 2012-07-03 Vsevolod Vlasov <vsevik@chromium.org> 2 30 -
trunk/LayoutTests/networkinformation/add-listener-from-callback-expected.txt
r112815 r121754 4 4 5 5 6 PASS connection.bandwidth is bandwidth7 PASS connection.metered is metered8 PASS connection.bandwidth is bandwidth9 PASS connection.metered is metered10 PASS connection.bandwidth is bandwidth11 PASS connection.metered is metered6 PASS typeof connection.bandwidth is "number" 7 PASS typeof connection.metered is "boolean" 8 PASS typeof connection.bandwidth is "number" 9 PASS typeof connection.metered is "boolean" 10 PASS typeof connection.bandwidth is "number" 11 PASS typeof connection.metered is "boolean" 12 12 PASS successfullyParsed is true 13 13 -
trunk/LayoutTests/networkinformation/basic-all-types-of-events-expected.txt
r112815 r121754 5 5 6 6 webkitnetworkinfochange event is raised 7 PASS connection.bandwidth is bandwidth8 PASS connection.metered is metered7 PASS typeof connection.bandwidth is "number" 8 PASS typeof connection.metered is "boolean" 9 9 PASS successfullyParsed is true 10 10 -
trunk/LayoutTests/networkinformation/basic-operation-expected.txt
r112815 r121754 4 4 5 5 6 PASS connection.bandwidth is bandwidth7 PASS connection.metered is metered6 PASS typeof connection.bandwidth is "number" 7 PASS typeof connection.metered is "boolean" 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/networkinformation/multiple-frames-expected.txt
r112815 r121754 4 4 5 5 6 PASS connection.bandwidth is bandwidth7 PASS connection.metered is metered8 PASS connection.bandwidth is bandwidth9 PASS connection.metered is metered6 PASS typeof connection.bandwidth is "number" 7 PASS typeof connection.metered is "boolean" 8 PASS typeof connection.bandwidth is "number" 9 PASS typeof connection.metered is "boolean" 10 10 PASS successfullyParsed is true 11 11 -
trunk/LayoutTests/networkinformation/script-tests/add-listener-from-callback.js
r112815 r121754 7 7 8 8 function checkNetworkInformation() { 9 shouldBe( 'connection.bandwidth', 'bandwidth');10 shouldBe( 'connection.metered', 'metered');9 shouldBe("typeof connection.bandwidth", '"number"'); 10 shouldBe("typeof connection.metered", '"boolean"'); 11 11 } 12 12 -
trunk/LayoutTests/networkinformation/script-tests/basic-all-types-of-events.js
r112815 r121754 7 7 8 8 function checkNetworkInformation() { 9 shouldBe( 'connection.bandwidth', 'bandwidth');10 shouldBe( 'connection.metered', 'metered');9 shouldBe("typeof connection.bandwidth", '"number"'); 10 shouldBe("typeof connection.metered", '"boolean"'); 11 11 } 12 12 -
trunk/LayoutTests/networkinformation/script-tests/basic-operation.js
r112815 r121754 7 7 8 8 connection.addEventListener('webkitnetworkinfochange', function() { 9 shouldBe( 'connection.bandwidth', 'bandwidth');10 shouldBe( 'connection.metered', 'metered');9 shouldBe("typeof connection.bandwidth", '"number"'); 10 shouldBe("typeof connection.metered", '"boolean"'); 11 11 finishJSTest(); 12 12 }); -
trunk/LayoutTests/networkinformation/script-tests/multiple-frames.js
r112815 r121754 7 7 8 8 function checkNetworkInformation() { 9 shouldBe( 'connection.bandwidth', 'bandwidth');10 shouldBe( 'connection.metered', 'metered');9 shouldBe("typeof connection.bandwidth", '"number"'); 10 shouldBe("typeof connection.metered", '"boolean"'); 11 11 } 12 12 13 13 function checkChildNetworkInformation() { 14 shouldBe( 'connection.bandwidth', 'bandwidth');15 shouldBe( 'connection.metered', 'metered');14 shouldBe("typeof connection.bandwidth", '"number"'); 15 shouldBe("typeof connection.metered", '"boolean"'); 16 16 } 17 17 -
trunk/LayoutTests/networkinformation/script-tests/updates.js
r112815 r121754 7 7 8 8 function checkNetworkInformation() { 9 shouldBe( 'connection.bandwidth', 'bandwidth');10 shouldBe( 'connection.metered', 'metered');9 shouldBe("typeof connection.bandwidth", '"number"'); 10 shouldBe("typeof connection.metered", '"boolean"'); 11 11 } 12 12 -
trunk/LayoutTests/networkinformation/updates-expected.txt
r112815 r121754 4 4 5 5 6 PASS connection.bandwidth is bandwidth7 PASS connection.metered is metered8 PASS connection.bandwidth is bandwidth9 PASS connection.metered is metered6 PASS typeof connection.bandwidth is "number" 7 PASS typeof connection.metered is "boolean" 8 PASS typeof connection.bandwidth is "number" 9 PASS typeof connection.metered is "boolean" 10 10 PASS successfullyParsed is true 11 11 -
trunk/Source/WebCore/ChangeLog
r121752 r121754 1 2012-07-03 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Improve test cases for network information APIs 4 https://bugs.webkit.org/show_bug.cgi?id=90162 5 6 Reviewed by Adam Barth. 7 8 Existing implementation doesn't test port implementation in network info APIs. 9 This patch lets test cases use bandwidth and metered functions implemented by port layer. 10 11 In addition, expected results need to check return type instead of property name. 12 13 No new tests. Covered by existing tests. 14 15 * Modules/networkinfo/NetworkInfoConnection.cpp: 16 (WebCore::NetworkInfoConnection::bandwidth): 17 (WebCore::NetworkInfoConnection::metered): 18 1 19 2012-07-03 Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> 2 20 -
trunk/Source/WebCore/Modules/networkinfo/NetworkInfoConnection.cpp
r121312 r121754 58 58 double NetworkInfoConnection::bandwidth() const 59 59 { 60 if (m_networkInfo)61 return m_networkInfo->bandwidth();62 63 60 return m_controller->client()->bandwidth(); 64 61 } … … 66 63 bool NetworkInfoConnection::metered() const 67 64 { 68 if (m_networkInfo)69 return m_networkInfo->metered();70 71 65 return m_controller->client()->metered(); 72 66 }
Note: See TracChangeset
for help on using the changeset viewer.