mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
Backed out changeset fbea533f8927 (bug 881997) for webgl conformance test failures
This commit is contained in:
parent
597ea59290
commit
f811790c24
@ -4,4 +4,3 @@
|
|||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
DIRS += ['non-conf-tests']
|
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
#
|
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
DEPTH = @DEPTH@
|
|
||||||
topsrcdir = @top_srcdir@
|
|
||||||
srcdir = @srcdir@
|
|
||||||
VPATH = @srcdir@
|
|
||||||
relativesrcdir = @relativesrcdir@
|
|
||||||
|
|
||||||
include $(DEPTH)/config/autoconf.mk
|
|
||||||
|
|
||||||
MOCHITEST_FILES = \
|
|
||||||
test_webgl_conformance.html \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
|
@ -1,5 +0,0 @@
|
|||||||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
||||||
# vim: set filetype=python:
|
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
@ -1,23 +0,0 @@
|
|||||||
<!DOCTYPE HTML>
|
|
||||||
<title>WebGL test: 'webgl' context request</title>
|
|
||||||
<script src="/MochiKit/MochiKit.js"></script>
|
|
||||||
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
||||||
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
|
|
||||||
<body>
|
|
||||||
<canvas id="c"></canvas>
|
|
||||||
<script>
|
|
||||||
|
|
||||||
var canvas = document.getElementById('c');
|
|
||||||
var gl = canvas.getContext('webgl');
|
|
||||||
|
|
||||||
var isAndroid = /Android/.test(navigator.userAgent);
|
|
||||||
var shouldBeConformant = !isAndroid;
|
|
||||||
|
|
||||||
if (shouldBeConformant) {
|
|
||||||
ok(gl, 'Expected conformance on: ' + navigator.userAgent);
|
|
||||||
} else {
|
|
||||||
ok(!gl, 'Unexpected conformance on: ' + navigator.userAgent);
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user