Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 379 waitForFinish(); | 379 waitForFinish(); |
| 380 } | 380 } |
| 381 }(texture, face, image, url); | 381 }(texture, face, image, url); |
| 382 image.src = url; | 382 image.src = url; |
| 383 } | 383 } |
| 384 return texture; | 384 return texture; |
| 385 } | 385 } |
| 386 | 386 |
| 387 function waitForFinish() { | 387 function waitForFinish() { |
| 388 if (g_pendingTextureLoads == 0) { | 388 if (g_pendingTextureLoads == 0) { |
| 389 domAutomationController.setAutomationId(1); | 389 var epilogue = document.createElement("script"); |
| 390 domAutomationController.send("ok"); | 390 epilogue.onload = function() { |
| 391 domAutomationController.setAutomationId(1); | |
| 392 domAutomationController.send("ok"); | |
| 393 } | |
| 394 epilogue.src = "./teapot_files/epilogue.js"; | |
|
jonathan.backer
2011/11/11 14:41:20
Are we missing this in chrome/test/data/gpu/webgl_
| |
| 395 document.body.appendChild(epilogue); | |
| 391 } | 396 } |
| 392 } | 397 } |
| OLD | NEW |