~caneypuggies/reformedchurcheslocator/couchapp-backbone

« back to all changes in this revision

Viewing changes to _attachments/js/vendor/requirejs/tests/text/textOnly.html

  • Committer: Tim Black
  • Date: 2013-09-16 22:50:16 UTC
  • Revision ID: tim@alwaysreformed.com-20130916225016-zk8jiba25z33ew7h
Versioned Bower vendor directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html>
 
2
<html>
 
3
<head>
 
4
    <title>require.js: Text Test</title>
 
5
    <script type="text/javascript" src="../../require.js"></script>
 
6
    <script type="text/javascript" src="../doh/runner.js"></script>
 
7
    <script type="text/javascript" src="../doh/_browserRunner.js"></script>
 
8
    <script type="text/javascript">
 
9
    require({
 
10
            baseUrl: "./",
 
11
            paths: {
 
12
                text: "../../../text/text"
 
13
            }
 
14
        },
 
15
        ["text!resources/sample.html!strip"],
 
16
        function(sampleText) {
 
17
            doh.register(
 
18
                "textOnly",
 
19
                [
 
20
                    function textOnly(t){
 
21
                        t.is("<span>Hello World!</span>", sampleText);
 
22
                    }
 
23
                ]
 
24
            );
 
25
            doh.run();
 
26
        }
 
27
    );
 
28
    </script>
 
29
</head>
 
30
<body>
 
31
    <h1>require.js: Text Test</h1>
 
32
    <p>Test for usage of text! require plugin.
 
33
    <p>Check console for messages</p>
 
34
</body>
 
35
</html>