Skip to content

Commit

Permalink
Adding sources of Opera 49.0.2725.58
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Bendig committed Dec 13, 2017
1 parent 0ddcc07 commit aea5ef7
Show file tree
Hide file tree
Showing 5,081 changed files with 257,887 additions and 80,221 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

<script>
window.addEventListener('message', function(e) {
domAutomationController.setAutomationId(0);
window.domAutomationController.send(e.data);
});

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!doctype html>
<!--
Tests that either screen taps are registered in VR when viewer is Cardboard
or that controller clicks are registered as screen taps in VR when viewer is
Daydream View.
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css">
</head>
<body>
<canvas id="webgl-canvas"></canvas>
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script>
<script src="../resources/webvr_e2e.js"></script>
<script src="../resources/webvr_boilerplate.js"></script>
<script>
var t = async_test("Screen taps/clicks registered when in VR");
window.addEventListener("vrdisplaypresentchange",
() => {finishJavaScriptStep();}, false);
var pressed = false;
var index = -1;
window.addEventListener("gamepadconnected", function(e) {
t.step( () => {
assert_equals(index, -1, "Should only receive gamepadconnected once");
index = e.gamepad.index;
});
});
onAnimationFrameCallback = function() {
if (index == -1) return;
var gp = navigator.getGamepads()[index];
if (!pressed && gp.buttons[0].pressed == true) {
pressed = true;
finishJavaScriptStep();
}
if (pressed && gp.buttons[0].pressed == false) {
t.done();
}
}
</script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
<script src="../resources/webvr_e2e.js"></script>
<script>
var t = async_test("NFC scan fires the vrdisplayactivate event");
window.addEventListener("vrdisplayactivate", () => {t.done();}, false);
// NFC scan triggered after page load
function addListener() {
window.addEventListener("vrdisplayactivate", () => {t.done();}, false);
}
// NFC scan triggered after page loaded and listener added
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!doctype html>
<!--
Tests that screen taps aren't registered while in VR
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css">
</head>
<body>
<canvas id="webgl-canvas"></canvas>
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script>
<script src="../resources/webvr_e2e.js"></script>
<script src="../resources/webvr_boilerplate.js"></script>
<script>
var t = async_test("Screen taps not registered when in VR");
window.addEventListener("vrdisplaypresentchange",
() => {finishJavaScriptStep();}, false);
var numTaps = 0;
webglCanvas.addEventListener("click", () => {numTaps++;}, false);

function stepVerifyNoInitialTaps() {
t.step( () => {
assert_equals(numTaps, 0, "No initial taps");
});
finishJavaScriptStep();
}

function stepVerifyNoAdditionalTaps() {
t.step_func_done( () => {
// We expect 1 tap from entering VR
assert_equals(numTaps, 1,
"Only one tap registered after two taps given");
})();
}

</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!doctype html>
<!--
Tests that an intent from a trusted app allows a page to auto present without
the need for a user gesture.
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css">
</head>
<body>
<canvas id="webgl-canvas"></canvas>
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script>
<script src="../resources/webvr_e2e.js"></script>
<script src="../resources/webvr_boilerplate.js"></script>
<script>
var t = async_test("Trusted intents allow auto present");

// We need to wait for vrDisplay to be non-null before adding the
// listener, so poll it
function pollVrDisplay() {
if (vrDisplay == null) {
window.setTimeout(pollVrDisplay, 100);
return
}
window.addEventListener("vrdisplayactivate", () => {
vrDisplay.requestPresent([{source: webglCanvas}]).then( () => {
// Do nothing
}, () => {
t.step( () => {
assert_unreached("requestPresent promise rejected");
});
}).then( () => {
t.done();
});
}, false);
}
window.setTimeout(pollVrDisplay, 100);
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<!--
Tests that the WebVR API is not present if the flag to enable it is not set.
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css">
</head>
<body>
<canvas id="webgl-canvas"></canvas>
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script>
<script src="../resources/webvr_e2e.js"></script>
</body>
<script>
var t = async_test("WebVR API is not visible");
if (navigator.getVRDisplays) {
t.step( () => {
assert_unreached("API is visible");
});
}
t.done();
</script>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!doctype html>
<!--
WebVR page without any code specific to one test
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css">
</head>
<body>
<canvas id="webgl-canvas"></canvas>
<script src="../resources/webvr_e2e.js"></script>
<script src="../resources/webvr_boilerplate.js"></script>
<script>
var has_submitted = false;
onAnimationFrameCallback = function() {
if (vrDisplay.isPresenting) {
if (has_submitted) {
shouldSubmitFrame = false;
finishJavaScriptStep();
}
has_submitted = true;
}
};
</script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var gl = webglCanvas.getContext("webgl", glAttribs);
var vrDisplay = null;
var frameData = null;
var onAnimationFrameCallback = null;
var shouldSubmitFrame = true;

function onResize() {
if (vrDisplay && vrDisplay.isPresenting) {
Expand Down Expand Up @@ -60,7 +61,7 @@ function onAnimationFrame(t) {
gl.viewport(webglCanvas.width * 0.5, 0, webglCanvas.width * 0.5,
webglCanvas.height);

vrDisplay.submitFrame();
if (shouldSubmitFrame) vrDisplay.submitFrame();
} else {
gl.clearColor(1.0, 0.0, 0.0, 1.0);
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
Expand All @@ -87,7 +88,6 @@ gl.enable(gl.DEPTH_TEST);
gl.enable(gl.CULL_FACE);
window.addEventListener("resize", onResize, false);
window.addEventListener("vrdisplaypresentchange", onVrPresentChange, false);
window.addEventListener('vrdisplayactivate', onVrRequestPresent, false);
window.requestAnimationFrame(onAnimationFrame);
webglCanvas.onclick = onVrRequestPresent;
onResize();
Loading

0 comments on commit aea5ef7

Please sign in to comment.