Line | |
---|
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
---|
2 | <head> |
---|
3 | <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
5 | <title>Testing arc</title> |
---|
6 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug: true"></script> |
---|
7 | <script type="text/javascript"> |
---|
8 | window.onerror = function(){ |
---|
9 | document.writeln("Test has failed: canvas.js cannot be loaded."); |
---|
10 | } |
---|
11 | require(["dojox/gfx/canvas", "dojo/ready"], function(canvas,ready){ |
---|
12 | ready(function(){ |
---|
13 | dojox.gfx.switchTo("canvas"); |
---|
14 | dojo.byId("test").innerHTML = "Test is successful."; |
---|
15 | }); |
---|
16 | }); |
---|
17 | |
---|
18 | </script> |
---|
19 | </head> |
---|
20 | <body> |
---|
21 | <h1>Test canvas.js loading under IE7/8 (Ticket 14288)</h1> |
---|
22 | <p>The purpose of this test is to check whether loading canvas.js breaks under IE7/8. This may happen |
---|
23 | when a custom dojo layer that includes gfx is built. In this case, the canvas.js code is included in |
---|
24 | the layer, therefore loaded. |
---|
25 | </p> |
---|
26 | <div id="test" style="width: 500px; height: 500px;font-weight:bold;"></div> |
---|
27 | </body> |
---|
28 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.