initial commit
[JIRC.git] / node_modules / jsdom / node_modules / htmlparser / tests / 03-single_tag_2.js
1 (function () {
2
3 function RunningInNode () {
4 return(
5 (typeof require) == "function"
6 &&
7 (typeof exports) == "object"
8 &&
9 (typeof module) == "object"
10 &&
11 (typeof __filename) == "string"
12 &&
13 (typeof __dirname) == "string"
14 );
15 }
16
17 if (!RunningInNode()) {
18 if (!this.Tautologistics)
19 this.Tautologistics = {};
20 if (!this.Tautologistics.NodeHtmlParser)
21 this.Tautologistics.NodeHtmlParser = {};
22 if (!this.Tautologistics.NodeHtmlParser.Tests)
23 this.Tautologistics.NodeHtmlParser.Tests = [];
24 exports = {};
25 this.Tautologistics.NodeHtmlParser.Tests.push(exports);
26 }
27
28 exports.name = "Single Tag 2";
29 exports.options = {
30 handler: {}
31 , parser: {}
32 };
33 exports.html = "<br>text<br>";
34 exports.expected =
35 [ { raw: 'br', data: 'br', type: 'tag', name: 'br' }
36 , { raw: 'text', data: 'text', type: 'text' }
37 , { raw: 'br', data: 'br', type: 'tag', name: 'br' }
38 ];
39
40 })();