Sha256: 722ff6eb0595bc758e64d188117b01533418cbb65f967c9012eeb6c02023097f

Contents?: true

Size: 789 Bytes

Versions: 216

Compression:

Stored size: 789 Bytes

Contents

  $(document).ready(function(){
    module("testMultiAttr");
    test("test1", function() {
      expect(1);

      var expected = '<span class="cm-tag">&lt;p </span><span class="cm-attribute">a1</span>=<span class="cm-string">"foo"</span> <span class="cm-attribute">a2</span>=<span class="cm-string">"bar"</span><span class="cm-tag">&gt;</span><span class="cm-word">hello</span> <span class="cm-word">world</span><span class="cm-tag">&lt;/p&gt;</span>';

      $("#sandbox").html('<textarea id="editor"></textarea>');
      $("#editor").html('<p a1="foo" a2="bar">hello world</p>');
      var editor = CodeMirror.fromTextArea($("#editor")[0]);
      var result = $(".CodeMirror-lines div div pre")[0].innerHTML;

       equal(result, expected);
       $("#editor").html("");
    });
  });

Version data entries

216 entries across 216 versions & 5 rubygems

Version Path
marty-2.4.7 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.4.6 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.4.5 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.4.4 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.4.3 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.4.2 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.4.1 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.4.0 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.15 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.14 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.13 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.12 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.11 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.10 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.9 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.8 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.7 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.5 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.3.4 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
marty-2.1.5 app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js