Home | History | Annotate | Download | only in xpath
      1 Test that an NCName and * are interpreted as an operator when in binary operator context, and as a NameTest otherwise.
      2 
      3 See bug 50366: XPath lexer misinterprets expression starting with "div".
      4 
      5 PASS div
      6 PASS   div
      7 PASS (div) div (div)
      8 PASS self::node()[div] div 1
      9 PASS . div .
     10 PASS .. div ..
     11 PASS string(div/@div)
     12 PASS substring-before('1992', div)
     13 PASS self::div
     14 PASS * div 4
     15 PASS '3' div 4
     16 PASS "3" div 4
     17 PASS 12 div 4
     18 PASS true() and div
     19 PASS false() or div
     20 PASS div mod div
     21 PASS div div div
     22 PASS 3 * div
     23 PASS div/div
     24 PASS div//div
     25 PASS zz|div
     26 PASS div+div
     27 PASS - - div
     28 PASS 5 -div
     29 PASS div=div
     30 PASS div!=div
     31 PASS div<div
     32 PASS div<=div
     33 PASS div>div
     34 PASS div>=div
     35 PASS *
     36 PASS   *
     37 PASS (*) * (*)
     38 PASS self::node()[*] * 1
     39 PASS . * .
     40 PASS .. * ..
     41 PASS substring-before('1992', *)
     42 PASS self::*
     43 PASS * * 4
     44 PASS '3' * 4
     45 PASS "3" * 4
     46 PASS 12 * 4
     47 PASS true() and *
     48 PASS false() or *
     49 PASS * mod *
     50 PASS * div *
     51 PASS 3 * *
     52 PASS */*
     53 PASS *//*
     54 PASS zz|*
     55 PASS *+*
     56 PASS - - *
     57 PASS 5 -*
     58 PASS *=*
     59 PASS *!=*
     60 PASS *<*
     61 PASS *<=*
     62 PASS *>*
     63 PASS *>=*
     64 PASS or:or
     65 PASS or:*
     66 PASS mod
     67 PASS mod mod mod
     68 PASS (mod) mod 5
     69 PASS string(mod/@and)
     70 PASS successfullyParsed is true
     71 
     72 TEST COMPLETE
     73 
     74