Backed out changeset fbea533f8927 (bug 881997) for webgl conformance test failures

This commit is contained in:
Ed Morley 2013-07-10 09:18:26 +01:00
parent 597ea59290
commit f811790c24
4 changed files with 0 additions and 47 deletions

View File

@ -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']

View File

@ -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

View File

@ -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/.

View File

@ -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>