 
             assert.is item.text, node.text
 
-        it "is not created if has a text parent", ->
-            doc = render
-                html: """<b n-style="styles:file">ab</b>"""
+        it 'is not created if has a text parent', ->
+            doc = render
+                html: '<b n-style="styles:file">ab</b>'
                 styles:
                     file:
                         _main:


        it "accepts 'styles:view:style:subid' syntax", ->
            doc = render
                html: """<b n-style="styles:view:style:subid" />"""
                windowStyle:
                    objects:
                        subid: Renderer.Text.New()

            assert.is doc.styles.length, 1
            assert.instanceOf (item = (style = doc.styles[0]).item), Renderer.Text

        it "created style is accessible in node", ->
            doc = render
                html: """<b n-style="renderer:Item" />"""

            assert.is (node = doc.styles[0].node).name, 'b'
            assert.instanceOf node.style, Renderer.Item

        it "node is accessible in created style document", ->
            doc = render
                html: """<b n-style="renderer:Item" />"""

            bNode = doc.node.query 'b'
            assert.is bNode.style.document.node, bNode

        it "must be specify to create a style", ->
            doc = render
                html: """<b />"""

            node = doc.node.query 'b'

            assert.is doc.styles.length, 0
            assert.isNotDefined node.style

    describe "Renderer.Text::text", ->
        it "is always equal of stringified node children", ->
            doc = render
                html: """<b n-style="renderer:Text">ab<i>c</i></b>"""

            node = doc.node.query 'b'
            item = doc.styles[0].item

            node.children[0].text = '123'
            assert.is item.text, node.stringifyChildren()

        it 'is always equal of stringified visible node children', ->
            doc = render
                html: '''
                    <b n-style="renderer:Text">ab<i visible="false">c</i></b>
                '''

            bNode = doc.node.query 'b'
            iNode = doc.node.query 'i'
