JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / fast / canvas / webgl / context-attributes-alpha-depth-stencil-antialias.html
index cf8b181..350b0d1 100644 (file)
@@ -1,6 +1,5 @@
 <html>
 <head>
-<link rel="stylesheet" href="../../js/resources/js-test-style.css"/>
 <script src="../../js/resources/js-test-pre.js"></script>
 <script src="resources/webgl-test.js"></script>
 <script id="vshader" type="x-shader/x-vertex">
@@ -28,7 +27,6 @@ void main()
 </script>
 
 <script>
-var successfullyParsed = false;
 
 // These four declarations need to be global for "shouldBe" to see them
 var webGL = null;
@@ -140,11 +138,11 @@ function testAlpha(alpha)
     else
         shouldBeNonNull("webGL = getWebGL('alphaOff', { alpha: false, depth: false, stencil: false, antialias: false }, [ 0, 0, 0, 0 ], 1, 0)");
     shouldBeNonNull("contextAttribs = webGL.getContextAttributes()");
-    shouldBeNonNull("contextAttribs.alpha");
-    shouldBeNonNull("contextAttribs.depth");
-    shouldBeNonNull("contextAttribs.stencil");
-    shouldBeNonNull("contextAttribs.antialias");
-    shouldBeNonNull("contextAttribs.premultipliedAlpha");
+    shouldBeDefined("contextAttribs.alpha");
+    shouldBeDefined("contextAttribs.depth");
+    shouldBeDefined("contextAttribs.stencil");
+    shouldBeDefined("contextAttribs.antialias");
+    shouldBeDefined("contextAttribs.premultipliedAlpha");
 
     var buf = new Uint8Array(1 * 1 * 4);
     webGL.readPixels(0, 0, 1, 1, webGL.RGBA, webGL.UNSIGNED_BYTE, buf);
@@ -164,11 +162,11 @@ function testDepth(depth)
     else
         shouldBeNonNull("webGL = getWebGL('depthOff', { depth: false, stencil: false, antialias: false }, [ 0, 0, 0, 1 ], 1, 0)");
     shouldBeNonNull("contextAttribs = webGL.getContextAttributes()");
-    shouldBeNonNull("contextAttribs.depth");
-    shouldBeNonNull("contextAttribs.alpha");
-    shouldBeNonNull("contextAttribs.stencil");
-    shouldBeNonNull("contextAttribs.antialias");
-    shouldBeNonNull("contextAttribs.premultipliedAlpha");
+    shouldBeDefined("contextAttribs.depth");
+    shouldBeDefined("contextAttribs.alpha");
+    shouldBeDefined("contextAttribs.stencil");
+    shouldBeDefined("contextAttribs.antialias");
+    shouldBeDefined("contextAttribs.premultipliedAlpha");
 
     webGL.depthFunc(webGL.NEVER);
 
@@ -204,11 +202,11 @@ function testStencil(stencil)
     else
         shouldBeNonNull("webGL = getWebGL('stencilOff', { depth: false, stencil: false, antialias: false }, [ 0, 0, 0, 1 ], 1, 0)");
     shouldBeNonNull("contextAttribs = webGL.getContextAttributes()");
-    shouldBeNonNull("contextAttribs.depth");
-    shouldBeNonNull("contextAttribs.alpha");
-    shouldBeNonNull("contextAttribs.stencil");
-    shouldBeNonNull("contextAttribs.antialias");
-    shouldBeNonNull("contextAttribs.premultipliedAlpha");
+    shouldBeDefined("contextAttribs.depth");
+    shouldBeDefined("contextAttribs.alpha");
+    shouldBeDefined("contextAttribs.stencil");
+    shouldBeDefined("contextAttribs.antialias");
+    shouldBeDefined("contextAttribs.premultipliedAlpha");
 
     webGL.depthFunc(webGL.ALWAYS);
 
@@ -247,11 +245,11 @@ function testAntialias(antialias)
     else
         shouldBeNonNull("webGL = getWebGL('antialiasOff', { depth: false, stencil: false, alpha: false, antialias: false }, [ 0, 0, 0, 1 ], 1, 0)");
     shouldBeNonNull("contextAttribs = webGL.getContextAttributes()");
-    shouldBeNonNull("contextAttribs.depth");
-    shouldBeNonNull("contextAttribs.alpha");
-    shouldBeNonNull("contextAttribs.stencil");
-    shouldBeNonNull("contextAttribs.antialias");
-    shouldBeNonNull("contextAttribs.premultipliedAlpha");
+    shouldBeDefined("contextAttribs.depth");
+    shouldBeDefined("contextAttribs.alpha");
+    shouldBeDefined("contextAttribs.stencil");
+    shouldBeDefined("contextAttribs.antialias");
+    shouldBeDefined("contextAttribs.premultipliedAlpha");
 
     var vertices = new Float32Array([
          1.0, 1.0, 0.0,
@@ -277,8 +275,6 @@ function runTest()
     testStencil(false);
     testAntialias(true);
     testAntialias(false);
-
-    successfullyParsed = true;
     var epilogue = document.createElement("script");
     epilogue.onload = finish;
     epilogue.src = "../../js/resources/js-test-post.js";