source: Dev/trunk/src/client/dojox/calc/tests/test_Standard.html

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1.2 KB
Line 
1<!DOCTYPE html>
2<html>
3<head>
4        <title>Standard Calculator Test</title>
5
6        <style>
7                @import "../../../dojo/resources/dojo.css";
8                @import "../../../dijit/tests/css/dijitTests.css";
9                @import "../../../dijit/themes/claro/claro.css";
10                @import "../../../dojox/layout/resources/FloatingPane.css";
11                @import "../../../dojox/calc/resources/Standard.css";
12        </style>
13
14        <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:true, parseOnLoad: false"></script>
15
16        <script type="text/javascript">
17                require([
18                        "dojox/calc/Standard",
19                        "dojo/ready",
20                        "dojo/store/Memory"
21                ], function(Standard, ready, Memory){
22                        ready(function(){
23                                new Standard(
24                                {
25                                        readStore: new Memory({ idProperty: "name", data: [
26                                                { name: "test2", args: "a, b", body: "return a/b;"}
27                                        ]}),
28                                        writeStore: new Memory({ idProperty: "name", data: [
29                                                { name: "test", args: "a, b", body: "for(var i = 0;i<1;i++)return a/b;" },
30                                                { name: "newFunc", args: "", body: "var a,b; return test(b=8,a=4);" },
31                                                { name: "exampleFunction", args:"x", body:"return 2*x;" }
32                                        ]})
33                                }, "calculator");
34                        });
35                });
36
37        </script>
38</head>
39<body class=claro>
40        <div id="calculator"></div>
41</body>
42</html>
Note: See TracBrowser for help on using the repository browser.