Skip to content

Commit

Permalink
NetInfo: web platform tests for the saveData attribute
Browse files Browse the repository at this point in the history
Bug: 772566
Change-Id: I344664a446506885c692668f0fe3a8555b3ea49b
Reviewed-on: https://chromium-review.googlesource.com/754161
Reviewed-by: Kinuko Yasuda <[email protected]>
Commit-Queue: Tarun Bansal <[email protected]>
Cr-Commit-Position: refs/heads/master@{#514640}
  • Loading branch information
tarunban authored and chromium-wpt-export-bot committed Nov 7, 2017
1 parent bc5dcbf commit c4fdcaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netinfo/netinfo-basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"ethernet", "mixed", "none", "other", "unknown", "wifi", "wimax"], 'type is unexpected');
}, "type attribute");

test(function() {
assert_in_array(navigator.connection.saveData, [false, true], 'saveData is unexpected');
}, "saveData attribute");

test(function() {
assert_greater_than_equal(navigator.connection.downlinkMax, 0);
}, "downlinkMax attribute");
Expand Down

0 comments on commit c4fdcaa

Please sign in to comment.