| Index: LayoutTests/presentation/availablechange-event.html
 | 
| diff --git a/LayoutTests/presentation/availablechange-event.html b/LayoutTests/presentation/availablechange-event.html
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..5950dfa967ec7d3c793aaae46b9a3cdbde053b8a
 | 
| --- /dev/null
 | 
| +++ b/LayoutTests/presentation/availablechange-event.html
 | 
| @@ -0,0 +1,26 @@
 | 
| +<!DOCTYPE html>
 | 
| +<html>
 | 
| +<head>
 | 
| +  <title>Tests the Presentation API's availablechange event's expected behavior.</title>
 | 
| +</head>
 | 
| +<body>
 | 
| +<script src="../resources/testharness.js"></script>
 | 
| +<script src="../resources/testharnessreport.js"></script>
 | 
| +<script>
 | 
| +
 | 
| +var availableChangeTest = async_test(
 | 
| +    "Test that availablechange event is fired when the screen availability becomes true.");
 | 
| +
 | 
| +navigator.presentation.onavailablechange = function(e) {
 | 
| +  availableChangeTest.step(function() {
 | 
| +    assert_true(e.available);
 | 
| +    availableChangeTest.done();
 | 
| +  });
 | 
| +}
 | 
| +
 | 
| +// Some screens are available, event must be fired with e.available set to true.
 | 
| +window.testRunner.setMockScreenAvailability(true);
 | 
| +
 | 
| +</script>
 | 
| +</body>
 | 
| +</html>
 | 
| 
 |