Permalink
Browse files

Import test data and improve the parser

  • Loading branch information...
tomhuda
tomhuda committed Mar 24, 2012
1 parent 288f3b5 commit dac0b3b98a65b8ad81e0dbdb602a17de4770897f
Showing with 119,019 additions and 39 deletions.
  1. +1 −0 .gitignore
  2. +32 −0 .jshintrc
  3. +1 −0 .rspec
  4. +4 −0 Gemfile
  5. +22 −0 Gemfile.lock
  6. +1 −0 Rakefile
  7. +109 −39 parser.js
  8. +41 −0 spec/spec_helper.rb
  9. +51 −0 spec/testdata/encoding/chardet/test_big5.txt
  10. +10 −0 spec/testdata/encoding/test-yahoo-jp.dat
  11. +394 −0 spec/testdata/encoding/tests1.dat
  12. +115 −0 spec/testdata/encoding/tests2.dat
  13. +501 −0 spec/testdata/sanitizer/tests1.dat
  14. +125 −0 spec/testdata/serializer/core.test
  15. +66 −0 spec/testdata/serializer/injectmeta.test
  16. +965 −0 spec/testdata/serializer/optionaltags.test
  17. +60 −0 spec/testdata/serializer/options.test
  18. +51 −0 spec/testdata/serializer/whitespace.test
  19. +1 −0 spec/testdata/sites/google-results.htm
  20. +1 −0 spec/testdata/sites/python-ref-import.htm
  21. +1 −0 spec/testdata/sites/web-apps-old.htm
  22. +34,275 −0 spec/testdata/sites/web-apps.htm
  23. +43 −0 spec/testdata/sniffer/htmlOrFeed.json
  24. +75 −0 spec/testdata/tokenizer/contentModelFlags.test
  25. +90 −0 spec/testdata/tokenizer/domjs.test
  26. +283 −0 spec/testdata/tokenizer/entities.test
  27. +33 −0 spec/testdata/tokenizer/escapeFlag.test
  28. +44,189 −0 spec/testdata/tokenizer/namedEntities.test
  29. +1,313 −0 spec/testdata/tokenizer/numericEntities.test
  30. +7 −0 spec/testdata/tokenizer/pendingSpecChanges.test
  31. +196 −0 spec/testdata/tokenizer/test1.test
  32. +179 −0 spec/testdata/tokenizer/test2.test
  33. +6,047 −0 spec/testdata/tokenizer/test3.test
  34. +344 −0 spec/testdata/tokenizer/test4.test
  35. +1,295 −0 spec/testdata/tokenizer/unicodeChars.test
  36. +27 −0 spec/testdata/tokenizer/unicodeCharsProblematic.test
  37. +22 −0 spec/testdata/tokenizer/xmlViolation.test
  38. +194 −0 spec/testdata/tree-construction/adoption01.dat
  39. +31 −0 spec/testdata/tree-construction/adoption02.dat
  40. +135 −0 spec/testdata/tree-construction/comments01.dat
  41. +370 −0 spec/testdata/tree-construction/doctype01.dat
  42. BIN spec/testdata/tree-construction/domjs-unsafe.dat
  43. +603 −0 spec/testdata/tree-construction/entities01.dat
  44. +249 −0 spec/testdata/tree-construction/entities02.dat
  45. +246 −0 spec/testdata/tree-construction/html5test-com.dat
  46. +43 −0 spec/testdata/tree-construction/inbody01.dat
  47. +40 −0 spec/testdata/tree-construction/isindex.dat
  48. BIN spec/testdata/tree-construction/pending-spec-changes-plain-text-unsafe.dat
  49. +52 −0 spec/testdata/tree-construction/pending-spec-changes.dat
  50. BIN spec/testdata/tree-construction/plain-text-unsafe.dat
  51. +308 −0 spec/testdata/tree-construction/scriptdata01.dat
  52. +15 −0 spec/testdata/tree-construction/scripted/adoption01.dat
  53. +26 −0 spec/testdata/tree-construction/scripted/ark.dat
  54. +28 −0 spec/testdata/tree-construction/scripted/webkit01.dat
  55. +212 −0 spec/testdata/tree-construction/tables01.dat
  56. +1,952 −0 spec/testdata/tree-construction/tests1.dat
  57. +799 −0 spec/testdata/tree-construction/tests10.dat
  58. +482 −0 spec/testdata/tree-construction/tests11.dat
  59. +62 −0 spec/testdata/tree-construction/tests12.dat
  60. +74 −0 spec/testdata/tree-construction/tests14.dat
  61. +208 −0 spec/testdata/tree-construction/tests15.dat
  62. +2,299 −0 spec/testdata/tree-construction/tests16.dat
  63. +153 −0 spec/testdata/tree-construction/tests17.dat
  64. +269 −0 spec/testdata/tree-construction/tests18.dat
  65. +1,237 −0 spec/testdata/tree-construction/tests19.dat
  66. +763 −0 spec/testdata/tree-construction/tests2.dat
  67. +455 −0 spec/testdata/tree-construction/tests20.dat
  68. +221 −0 spec/testdata/tree-construction/tests21.dat
  69. +157 −0 spec/testdata/tree-construction/tests22.dat
  70. +155 −0 spec/testdata/tree-construction/tests23.dat
  71. +79 −0 spec/testdata/tree-construction/tests24.dat
  72. +219 −0 spec/testdata/tree-construction/tests25.dat
  73. +313 −0 spec/testdata/tree-construction/tests26.dat
  74. +305 −0 spec/testdata/tree-construction/tests3.dat
  75. +59 −0 spec/testdata/tree-construction/tests4.dat
  76. +191 −0 spec/testdata/tree-construction/tests5.dat
  77. +663 −0 spec/testdata/tree-construction/tests6.dat
  78. +390 −0 spec/testdata/tree-construction/tests7.dat
  79. +148 −0 spec/testdata/tree-construction/tests8.dat
  80. +457 −0 spec/testdata/tree-construction/tests9.dat
  81. +741 −0 spec/testdata/tree-construction/tests_innerHTML_1.dat
  82. +261 −0 spec/testdata/tree-construction/tricky01.dat
  83. +594 −0 spec/testdata/tree-construction/webkit01.dat
  84. +94 −0 spec/testdata/tree-construction/webkit02.dat
  85. +1,035 −0 spec/testdata/validator/attributes.test
  86. +787 −0 spec/testdata/validator/base-href-attribute.test
  87. +35 −0 spec/testdata/validator/base-target-attribute.test
  88. +7 −0 spec/testdata/validator/blockquote-cite-attribute.test
  89. +152 −0 spec/testdata/validator/classattribute.test
  90. +59 −0 spec/testdata/validator/contenteditableattribute.test
  91. +115 −0 spec/testdata/validator/contextmenuattribute.test
  92. +59 −0 spec/testdata/validator/dirattribute.test
  93. +63 −0 spec/testdata/validator/draggableattribute.test
  94. +23 −0 spec/testdata/validator/html-xmlns-attribute.test
  95. +115 −0 spec/testdata/validator/idattribute.test
  96. +2,795 −0 spec/testdata/validator/inputattributes.test
  97. +63 −0 spec/testdata/validator/irrelevantattribute.test
  98. +5,579 −0 spec/testdata/validator/langattribute.test
  99. +7 −0 spec/testdata/validator/li-value-attribute.test
  100. +7 −0 spec/testdata/validator/link-href-attribute.test
  101. +7 −0 spec/testdata/validator/link-hreflang-attribute.test
  102. +271 −0 spec/testdata/validator/link-rel-attribute.test
  103. +7 −0 spec/testdata/validator/ol-start-attribute.test
  104. +375 −0 spec/testdata/validator/starttags.test
  105. +7 −0 spec/testdata/validator/style-scoped-attribute.test
  106. +79 −0 spec/testdata/validator/tabindexattribute.test
  107. +50 −0 spec/tokenizer_spec.rb
View
@@ -0,0 +1 @@
+html5lib
View
@@ -0,0 +1,32 @@
+{
+ "predef": [
+ "console",
+ "require"
+ ],
+
+ "node" : true,
+ "es5" : true,
+ "browser" : true,
+
+ "boss" : true,
+ "curly": false,
+ "debug": false,
+ "devel": false,
+ "eqeqeq": true,
+ "evil": true,
+ "forin": false,
+ "immed": false,
+ "laxbreak": false,
+ "newcap": true,
+ "noarg": true,
+ "noempty": false,
+ "nonew": false,
+ "nomen": false,
+ "onevar": false,
+ "plusplus": false,
+ "regexp": false,
+ "undef": true,
+ "sub": true,
+ "strict": false,
+ "white": false
+}
View
1 .rspec
@@ -0,0 +1 @@
+-cfs
View
@@ -0,0 +1,4 @@
+source "https://rubygems.org"
+
+gem "therubyracer"
+gem "rspec"
View
@@ -0,0 +1,22 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ libv8 (3.3.10.4)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.8.0)
+ therubyracer (0.9.10)
+ libv8 (~> 3.3.10)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rspec
+ therubyracer
View
@@ -0,0 +1 @@
+require "bundler/setup"
Oops, something went wrong.

0 comments on commit dac0b3b

Please sign in to comment.