Bug 1490700 - Add crashtest. r=jib

Differential Revision: https://phabricator.services.mozilla.com/D5783

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2018-09-14 09:15:46 +00:00
Родитель 403853306a
Коммит 54c2771d20
2 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>Bug 1490700 - Divide-by-zero for screen-capture with max-dimension 0</title>
</head>
</body>
<script type="application/javascript">
async function test() {
await window.navigator.mediaDevices.getUserMedia({
video: {
mediaSource: 'screen',
height: {max: 0},
},
});
await window.navigator.mediaDevices.getUserMedia({
video: {
mediaSource: 'screen',
advanced: [{height: 0}],
},
});
document.documentElement.removeAttribute("class");
}
test();
</script>
</body>
</html>

Просмотреть файл

@ -23,3 +23,4 @@ load 1367930_2.html
pref(browser.link.open_newwindow,2) load 1429507_1.html # window.open() in tab doesn't work for crashtest in e10s, this opens a new window instead
pref(browser.link.open_newwindow,2) load 1429507_2.html # window.open() in tab doesn't work for crashtest in e10s, this opens a new window instead
load 1453030.html
skip-if(Android) load 1490700.html # No screenshare on Android