Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Unified Diff: LayoutTests/battery-status/api-defined.html

Issue 931783002: bindings: Fixes battery-status test (attributes are not own properties). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/battery-status/api-defined-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/battery-status/api-defined.html
diff --git a/LayoutTests/battery-status/api-defined.html b/LayoutTests/battery-status/api-defined.html
index f247abe50907ffafc79df8b8d46181ef14e59a02..ea2a985e5fd7460c0fd4f98b096699499ab4e7ea 100644
--- a/LayoutTests/battery-status/api-defined.html
+++ b/LayoutTests/battery-status/api-defined.html
@@ -44,11 +44,6 @@ function batteryStatusSuccess(batteryManager) {
shouldBeTrue("typeof battery.ondischargingtimechange == 'object'");
shouldBeTrue("typeof battery.onlevelchange == 'object'");
- shouldBeTrue("battery.hasOwnProperty('onchargingchange')");
- shouldBeTrue("battery.hasOwnProperty('onchargingtimechange')");
- shouldBeTrue("battery.hasOwnProperty('ondischargingtimechange')");
- shouldBeTrue("battery.hasOwnProperty('onlevelchange')");
-
shouldBeTrue("'onchargingchange' in battery");
shouldBeTrue("'onchargingtimechange' in battery");
shouldBeTrue("'ondischargingtimechange' in battery");
@@ -66,7 +61,7 @@ promise = navigator.getBattery();
shouldBeDefined("promise");
shouldBeDefined("promise.then");
promise.then(batteryStatusSuccess, batteryStatusFailure);
-setAndFireMockBatteryInfo(false, 10, 20, 0.5);
+setAndFireMockBatteryInfo(false, 10, 20, 0.5);
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/battery-status/api-defined-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698