-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,m…
…arionette-reviewers,whimboo Differential Revision: https://phabricator.services.mozilla.com/D79202
- Loading branch information
Showing
81 changed files
with
431 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script> | ||
function boom() | ||
{ | ||
window.__proto__ = null; | ||
for (var i = 0; i < 10000; ++i) { | ||
self.document; | ||
} | ||
} | ||
|
||
</script></head> | ||
|
||
<body onload="boom();"></body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script> | ||
function boom() | ||
{ | ||
window.__proto__ = null; | ||
for (var i = 0; i < 10000; ++i) { | ||
self.document; | ||
} | ||
} | ||
|
||
</script></head> | ||
|
||
<body onload="boom();"></body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script> | ||
function boom() | ||
{ | ||
window.__proto__ = function(){}; | ||
for (var i = 0; i < 10000; ++i) { | ||
self.document; | ||
} | ||
} | ||
|
||
</script></head> | ||
|
||
<body onload="boom();"></body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script> | ||
function boom() | ||
{ | ||
window.__proto__ = function(){}; | ||
for (var i = 0; i < 10000; ++i) { | ||
self.document; | ||
} | ||
} | ||
|
||
</script></head> | ||
|
||
<body onload="boom();"></body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
var onvolumechange; | ||
var x = {}; | ||
|
||
(function() { | ||
onvolumechange = x; | ||
is(onvolumechange, x, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ | |
|
||
SimpleTest.finish(); | ||
})(); | ||
}); | ||
}); | ||
} | ||
|
||
]]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<html> | ||
<head> | ||
<script> | ||
window.onload = function(){ | ||
var frame = document.getElementById('test_iframe'); | ||
var win = frame.contentWindow; | ||
frame.remove(); | ||
win.onvrdisplayactivate = function () {} | ||
}; | ||
</script></head> | ||
<body> | ||
<iframe id="test_iframe"></iframe> | ||
</body> | ||
</html> | ||
<html> | ||
<head> | ||
<script> | ||
window.onload = function(){ | ||
var frame = document.getElementById('test_iframe'); | ||
var win = frame.contentWindow; | ||
frame.remove(); | ||
win.onvrdisplayactivate = function () {} | ||
}; | ||
</script></head> | ||
<body> | ||
<iframe id="test_iframe"></iframe> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>VRDisplay ExitPresent</title> | ||
<meta name="timeout" content="long"/> | ||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="VRSimulationDriver.js"></script> | ||
<script src="runVRTest.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
function testExitPresentOnOtherIframe(content) { | ||
return content.navigator.getVRDisplays().then((displays) => { | ||
content.vrDisplay = displays[0]; | ||
return content.vrDisplay.exitPresent(); | ||
}); | ||
} | ||
var initVRPresentation = function(content) { | ||
return VRSimulationDriver.AttachWebVRDisplay().then(() => { | ||
return content.navigator.getVRDisplays().then((displays) => { | ||
content.vrDisplay = displays[0]; | ||
content.canvas = content.document.createElement("canvas"); | ||
content.canvas.id = "vrCanvas"; | ||
return content.vrDisplay.requestPresent([{source:content.canvas}]); | ||
}); | ||
}); | ||
} | ||
function startTest() { | ||
var ifr1 = document.getElementById("iframe1"); | ||
var ifr2 = document.getElementById("iframe2"); | ||
var frame1 = ifr1.contentWindow; | ||
var frame2 = ifr2.contentWindow; | ||
promise_test((test) => { | ||
return VRSimulationDriver.AttachWebVRDisplay().then(() => { | ||
return initVRPresentation(frame1).then(() => { | ||
promise_test((test) => { | ||
return promise_rejects(test, null, testExitPresentOnOtherIframe(frame2)); | ||
}, "We cannot exit VR presentation established by another content, this promise is expected to be rejected.") | ||
}); | ||
}); | ||
}, "Finish running WebVR exitPresent test."); | ||
} | ||
runVRTest(startTest); | ||
</script> | ||
|
||
<iframe id="iframe1"></iframe> | ||
<iframe id="iframe2"></iframe> | ||
</body> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>VRDisplay ExitPresent</title> | ||
<meta name="timeout" content="long"/> | ||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="VRSimulationDriver.js"></script> | ||
<script src="runVRTest.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
function testExitPresentOnOtherIframe(content) { | ||
return content.navigator.getVRDisplays().then((displays) => { | ||
content.vrDisplay = displays[0]; | ||
return content.vrDisplay.exitPresent(); | ||
}); | ||
} | ||
var initVRPresentation = function(content) { | ||
return VRSimulationDriver.AttachWebVRDisplay().then(() => { | ||
return content.navigator.getVRDisplays().then((displays) => { | ||
content.vrDisplay = displays[0]; | ||
content.canvas = content.document.createElement("canvas"); | ||
content.canvas.id = "vrCanvas"; | ||
return content.vrDisplay.requestPresent([{source:content.canvas}]); | ||
}); | ||
}); | ||
} | ||
function startTest() { | ||
var ifr1 = document.getElementById("iframe1"); | ||
var ifr2 = document.getElementById("iframe2"); | ||
var frame1 = ifr1.contentWindow; | ||
var frame2 = ifr2.contentWindow; | ||
promise_test((test) => { | ||
return VRSimulationDriver.AttachWebVRDisplay().then(() => { | ||
return initVRPresentation(frame1).then(() => { | ||
promise_test((test) => { | ||
return promise_rejects(test, null, testExitPresentOnOtherIframe(frame2)); | ||
}, "We cannot exit VR presentation established by another content, this promise is expected to be rejected.") | ||
}); | ||
}); | ||
}, "Finish running WebVR exitPresent test."); | ||
} | ||
runVRTest(startTest); | ||
</script> | ||
|
||
<iframe id="iframe1"></iframe> | ||
<iframe id="iframe2"></iframe> | ||
</body> | ||
</html> |
Oops, something went wrong.