test.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. after =
  2. <span>
  3. foo <span>bar</span>
  4. </span>
  5. before =
  6. <span>
  7. <span>bar</span> foo
  8. </span>
  9. before_break1 =
  10. <span>
  11. <span barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar /> foo
  12. </span>
  13. before_break2 =
  14. <span>
  15. <span barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar /> foo
  16. </span>
  17. after_break =
  18. <span>
  19. foo <span barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar />
  20. </span>
  21. within =
  22. <span>
  23. foo <span> bar </span>
  24. </span>
  25. break_components =
  26. <div>
  27. <Foo />
  28. <Bar>
  29. <p>foo<span>bar bar bar</span></p><h1><span><em>yep</em></span></h1>
  30. </Bar>
  31. <h2>nope</h2>
  32. </div>
  33. var x = <div>
  34. hello <strong>hi</strong> <foo>sdkflsdfjk</foo>
  35. </div>;
  36. nest_plz =
  37. <div>
  38. <div>
  39. <div></div>
  40. </div>
  41. </div>
  42. regression_not_transformed_1 =
  43. <span> <Icon icon="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" /></span>;
  44. regression_not_transformed_2 =
  45. <span><Icon icon="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" /> </span>;
  46. similar_1 =
  47. <span> <Icon icon="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" /></span>;
  48. similar_2 =
  49. <span><Icon icon="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" /> </span>;
  50. similar_3 =
  51. <span><Icon icon="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" /> <Icon icon="" /></span>;
  52. not_broken_end =
  53. <div>
  54. long text long text long text long text long text long text long text long text <link>url</link> long text long text
  55. </div>
  56. not_broken_begin =
  57. <div>
  58. <br /> long text long text long text long text long text long text long text long text<link>url</link> long text long text
  59. </div>