Bug Tracker

Ticket #1271: test1271.diff

File test1271.diff, 1.0 kB (added by joern, 9 months ago)

Test

  • test/unit/selector.js

     
    2929    }); 
    3030} 
    3131 
     32test("#1271", function() { 
     33    t( "xxx", "#testFor1271 [foo]", ["foobar" ]); 
     34}); 
     35 
    3236test("broken", function() { 
    3337    expect(7); 
    3438    t( "Broken Selector", "[", [] ); 
  • test/index.html

     
    3333            <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a> 
    3434 
    3535        </p> 
     36        <div id="testFor1271"> 
     37            <div id="foobar" foo="bar"></div> 
     38            <form> 
     39                <input name='foo'> 
     40            </form> 
     41        </div> 
    3642        <div id="foo"> 
    3743            <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p> 
    3844            <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>