From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- testing/web-platform/tests/battery-status/OWNERS | 3 + .../battery-status/battery-charging-manual.html | 52 +++++++++ .../battery-status/battery-discharging-manual.html | 52 +++++++++ .../tests/battery-status/battery-full-manual.html | 42 +++++++ .../battery-interface-idlharness.html | 74 ++++++++++++ .../battery-status/battery-plugging-in-manual.html | 125 +++++++++++++++++++++ .../battery-status/battery-promise-iframe.html | 80 +++++++++++++ .../battery-status/battery-promise-window.html | 28 +++++ .../tests/battery-status/battery-promise.html | 19 ++++ .../battery-status/battery-unplugging-manual.html | 110 ++++++++++++++++++ .../battery-status/support-iframe-initial.html | 5 + .../tests/battery-status/support-iframe.html | 5 + .../tests/battery-status/support-window-open.html | 10 ++ 13 files changed, 605 insertions(+) create mode 100644 testing/web-platform/tests/battery-status/OWNERS create mode 100644 testing/web-platform/tests/battery-status/battery-charging-manual.html create mode 100644 testing/web-platform/tests/battery-status/battery-discharging-manual.html create mode 100644 testing/web-platform/tests/battery-status/battery-full-manual.html create mode 100644 testing/web-platform/tests/battery-status/battery-interface-idlharness.html create mode 100644 testing/web-platform/tests/battery-status/battery-plugging-in-manual.html create mode 100644 testing/web-platform/tests/battery-status/battery-promise-iframe.html create mode 100644 testing/web-platform/tests/battery-status/battery-promise-window.html create mode 100644 testing/web-platform/tests/battery-status/battery-promise.html create mode 100644 testing/web-platform/tests/battery-status/battery-unplugging-manual.html create mode 100644 testing/web-platform/tests/battery-status/support-iframe-initial.html create mode 100644 testing/web-platform/tests/battery-status/support-iframe.html create mode 100644 testing/web-platform/tests/battery-status/support-window-open.html (limited to 'testing/web-platform/tests/battery-status') diff --git a/testing/web-platform/tests/battery-status/OWNERS b/testing/web-platform/tests/battery-status/OWNERS new file mode 100644 index 000000000..eb86aa069 --- /dev/null +++ b/testing/web-platform/tests/battery-status/OWNERS @@ -0,0 +1,3 @@ +@anssiko +@dontcallmedom +@zqzhang diff --git a/testing/web-platform/tests/battery-status/battery-charging-manual.html b/testing/web-platform/tests/battery-status/battery-charging-manual.html new file mode 100644 index 000000000..8e80e30a2 --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-charging-manual.html @@ -0,0 +1,52 @@ + + +Battery Test: battery neither empty or full, charger plugged in + + + + +

Description

+

+ This test validates that all of the BatteryManager attributes exist and are set to their correct values when battery is charging. +

+ +

Preconditions

+
    +
  1. + The device is plugged in to the charger before this test is run. +
  2. +
  3. + The battery must neither be empty or full, nor reach empty or full capacity during the test. +
  4. +
  5. + Waiting for battery level change to fire levelchange event, maybe need a long time +
  6. +
+ + diff --git a/testing/web-platform/tests/battery-status/battery-discharging-manual.html b/testing/web-platform/tests/battery-status/battery-discharging-manual.html new file mode 100644 index 000000000..c4ccbe445 --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-discharging-manual.html @@ -0,0 +1,52 @@ + + +Battery Test: battery neither empty or full, charger unplugged in + + + + +

Description

+

+ This test validates that all of the BatteryManager attributes exist and are set to their correct values when battery is discharging. +

+ +

Preconditions

+
    +
  1. + The device is unplugged from the charger before this test is run. +
  2. +
  3. + The battery must neither be empty or full, nor reach empty or full capacity during the test. +
  4. +
  5. + Waiting for battery level change to fire levelchange event, maybe need a long time +
  6. +
+ + diff --git a/testing/web-platform/tests/battery-status/battery-full-manual.html b/testing/web-platform/tests/battery-status/battery-full-manual.html new file mode 100644 index 000000000..883d71f40 --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-full-manual.html @@ -0,0 +1,42 @@ + + +Battery Test: battery full, charger plugged in + + + + +

Description

+

+ This test validates that all of the BatteryManager attributes exist and are set to their correct values when battery is full. +

+ +

Preconditions

+
    +
  1. + The device is plugged in to the charger before this test is run. +
  2. +
  3. + The battery is full. +
  4. +
+ + diff --git a/testing/web-platform/tests/battery-status/battery-interface-idlharness.html b/testing/web-platform/tests/battery-status/battery-interface-idlharness.html new file mode 100644 index 000000000..4e9b209d4 --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-interface-idlharness.html @@ -0,0 +1,74 @@ + + +Battery test: IDL + + + + + + + + +

Description

+

+ This test validates the BatteryManager interface IDL. +

+

+ This test uses idlharness.js, and + is complementary to the battery-interface.html + test. +

+ +
diff --git a/testing/web-platform/tests/battery-status/battery-plugging-in-manual.html b/testing/web-platform/tests/battery-status/battery-plugging-in-manual.html new file mode 100644 index 000000000..4d16cf187 --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-plugging-in-manual.html @@ -0,0 +1,125 @@ + + +Battery Test: battery not full, charger plugging in + + + + + +

Description

+

+ This test validates that all of the BatteryManager attributes exist and + are set to correct values, with corresponding events fired, + when the charger is plugged in. +

+ +

Preconditions

+
    +
  1. + The device is unplugged from the charger before this test is run. +
  2. +
  3. + The battery must not be full or reach full capacity before the time the test is run. +
  4. +
+ +
+
    +
  1. + Plug in the charger and wait for all the tests to complete. +
  2. +
  3. + The tests may take long time since the definition of how + often the chargingtimechange, dischargingtimechange, and levelchange + events are fired is left to the implementation. +
  4. +
+
+ +
+ + diff --git a/testing/web-platform/tests/battery-status/battery-promise-iframe.html b/testing/web-platform/tests/battery-status/battery-promise-iframe.html new file mode 100644 index 000000000..6add86106 --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-promise-iframe.html @@ -0,0 +1,80 @@ + + +Battery Test: iframe has a different Navigator object + + + +
+ + + diff --git a/testing/web-platform/tests/battery-status/battery-promise-window.html b/testing/web-platform/tests/battery-status/battery-promise-window.html new file mode 100644 index 000000000..a7d708c05 --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-promise-window.html @@ -0,0 +1,28 @@ + + +Battery Test: window.open() makes a different Navigator object + + + +
+ Allow pop-up windows before running the tests. +
+
+ diff --git a/testing/web-platform/tests/battery-status/battery-promise.html b/testing/web-platform/tests/battery-status/battery-promise.html new file mode 100644 index 000000000..8c552eb3f --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-promise.html @@ -0,0 +1,19 @@ + + +Battery Test: navigator.getBattery() always return same battery promise + + + +
+ diff --git a/testing/web-platform/tests/battery-status/battery-unplugging-manual.html b/testing/web-platform/tests/battery-status/battery-unplugging-manual.html new file mode 100644 index 000000000..bb576da2b --- /dev/null +++ b/testing/web-platform/tests/battery-status/battery-unplugging-manual.html @@ -0,0 +1,110 @@ + + +Battery Test: charger unplugging + + + + + +

Description

+

+ This test validates that all of the BatteryManager attributes exist and + are set to correct values, with corresponding events fired, + when the charger is unplugged. +

+ +

Preconditions

+
    +
  1. + The device is plugged in to the charger before this test is run. +
  2. +
+ +
+ Unplug the charger and wait for all the tests to complete. +
+ +
+ + diff --git a/testing/web-platform/tests/battery-status/support-iframe-initial.html b/testing/web-platform/tests/battery-status/support-iframe-initial.html new file mode 100644 index 000000000..d4e5b31f1 --- /dev/null +++ b/testing/web-platform/tests/battery-status/support-iframe-initial.html @@ -0,0 +1,5 @@ + + +
+Hello! +
diff --git a/testing/web-platform/tests/battery-status/support-iframe.html b/testing/web-platform/tests/battery-status/support-iframe.html new file mode 100644 index 000000000..d4e5b31f1 --- /dev/null +++ b/testing/web-platform/tests/battery-status/support-iframe.html @@ -0,0 +1,5 @@ + + +
+Hello! +
diff --git a/testing/web-platform/tests/battery-status/support-window-open.html b/testing/web-platform/tests/battery-status/support-window-open.html new file mode 100644 index 000000000..afffc3af2 --- /dev/null +++ b/testing/web-platform/tests/battery-status/support-window-open.html @@ -0,0 +1,10 @@ + + + -- cgit v1.2.3