Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / webgl / src / sdk / tests / conformance / resources / glsl-conformance-test.js
index e1e113f..b259a94 100644 (file)
@@ -143,6 +143,7 @@ function runOneTest(gl, info) {
                 info.fShaderSuccess + ") " + passMsg);
       return;
     }
+
     // Safe the shaders so we test shared shader.
     if (fShader) {
       fShaderDB[fSource] = fShader;
@@ -182,6 +183,22 @@ function runOneTest(gl, info) {
     }
   }
 
+  if (parseInt(wtu.getUrlOptions().dumpShaders)) {
+    var vInfo = {
+      shader: vShader,
+      shaderSuccess: info.vShaderSuccess,
+      label: vLabel,
+      source: vSource
+    };
+    var fInfo = {
+      shader: fShader,
+      shaderSuccess: info.fShaderSuccess,
+      label: fLabel,
+      source: fSource
+    };
+    wtu.dumpShadersInfo(gl, window.location.pathname, passMsg, vInfo, fInfo);
+  }
+
   if (!info.render) {
     testPassed(passMsg);
     return;