You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
<head> |
|
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> |
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
<title>Testing arc</title> |
|
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug: true"></script> |
|
<script type="text/javascript"> |
|
window.onerror = function(){ |
|
document.writeln("Test has failed: canvas.js cannot be loaded."); |
|
} |
|
require(["dojox/gfx/canvas", "dojo/ready"], function(canvas,ready){ |
|
ready(function(){ |
|
dojox.gfx.switchTo("canvas"); |
|
dojo.byId("test").innerHTML = "Test is successful."; |
|
}); |
|
}); |
|
|
|
</script> |
|
</head> |
|
<body> |
|
<h1>Test canvas.js loading under IE7/8 (Ticket 14288)</h1> |
|
<p>The purpose of this test is to check whether loading canvas.js breaks under IE7/8. This may happen |
|
when a custom dojo layer that includes gfx is built. In this case, the canvas.js code is included in |
|
the layer, therefore loaded. |
|
</p> |
|
<div id="test" style="width: 500px; height: 500px;font-weight:bold;"></div> |
|
</body> |
|
</html>
|
|
|