Skip to content

Commit

Permalink
增加 cases
Browse files Browse the repository at this point in the history
  • Loading branch information
wupengFEX committed Jan 10, 2018
1 parent d60360b commit b0dbcf9
Show file tree
Hide file tree
Showing 86 changed files with 448 additions and 104 deletions.
2 changes: 1 addition & 1 deletion cases/101.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200201",
"line": 22,
"col": 1,
"offset": 687,
"offset": 684,
"input": "<img src=\"./bn_files/f9198618367adab42b088b5783d4b31c8601e4ce.jpg\">"
}
]
2 changes: 1 addition & 1 deletion cases/102.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200201",
"line": 12,
"col": 1,
"offset": 423,
"offset": 420,
"input": "<video></video>"
}
]
2 changes: 1 addition & 1 deletion cases/104.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200201",
"line": 12,
"col": 1,
"offset": 423,
"offset": 420,
"input": "<audio></audio>"
}
]
2 changes: 1 addition & 1 deletion cases/105.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200301",
"line": 12,
"col": 1,
"offset": 421,
"offset": 418,
"input": "<a href=\"javascript:void(0)\" target=\"_blank\">href不对的连接</a>"
}
]
10 changes: 9 additions & 1 deletion cases/107.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
[
{
"message": "标签 <mip-img src=\"/^\\S+$/\">'或'<mip-img srcset=\"/^\\S+$/\"> 必要属性不符合要求或缺失",
"code": "06200102",
"line": 20,
"col": 1,
"offset": 1013,
"input": "<mip-img data-carousel=\"\" class=\"mip-img\" src=\"\">"
},
{
"message": "标签'mip-img'中的属性'src'的属性值''无效",
"code": "06200301",
"line": 20,
"col": 1,
"offset": 1016,
"offset": 1013,
"input": "<mip-img data-carousel=\"\" class=\"mip-img\" src=\"\">"
}
]
2 changes: 1 addition & 1 deletion cases/108.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200501",
"line": 154,
"col": 1,
"offset": 5919,
"offset": 5916,
"input": "<mip-pix scr=\"\"></mip-pix>"
}
]
10 changes: 9 additions & 1 deletion cases/110.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
[
{
"message": "标签 <mip-img src=\"/^\\S+$/\">'或'<mip-img srcset=\"/^\\S+$/\"> 必要属性不符合要求或缺失",
"code": "06200102",
"line": 22,
"col": 1,
"offset": 759,
"input": "<mip-img data-carousel=\"carousel\" class=\"mip-img mip-element\" src=\"\">"
},
{
"message": "标签'mip-img'中的属性'src'的属性值''无效",
"code": "06200301",
"line": 22,
"col": 1,
"offset": 762,
"offset": 759,
"input": "<mip-img data-carousel=\"carousel\" class=\"mip-img mip-element\" src=\"\">"
}
]
2 changes: 1 addition & 1 deletion cases/113.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200201",
"line": 12,
"col": 1,
"offset": 556,
"offset": 553,
"input": "<object></object>"
}
]
2 changes: 1 addition & 1 deletion cases/114.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200201",
"line": 11,
"col": 1,
"offset": 555,
"offset": 552,
"input": "<param></param>"
}
]
2 changes: 1 addition & 1 deletion cases/115.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200201",
"line": 11,
"col": 1,
"offset": 555,
"offset": 552,
"input": "<applet></applet>"
}
]
2 changes: 1 addition & 1 deletion cases/116.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200201",
"line": 12,
"col": 1,
"offset": 556,
"offset": 553,
"input": "<embed></embed>"
}
]
2 changes: 1 addition & 1 deletion cases/117.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200201",
"line": 11,
"col": 1,
"offset": 423,
"offset": 420,
"input": "<form></form>"
}
]
2 changes: 1 addition & 1 deletion cases/118.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200901",
"line": 11,
"col": 1,
"offset": 424,
"offset": 421,
"input": "<input></input>"
}
]
2 changes: 1 addition & 1 deletion cases/119.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200901",
"line": 11,
"col": 1,
"offset": 424,
"offset": 421,
"input": "<textarea></textarea>"
}
]
6 changes: 3 additions & 3 deletions cases/120.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"code": "06200901",
"line": 13,
"col": 1,
"offset": 554,
"offset": 551,
"input": "<select>"
},
{
"message": "标签'option'只能是标签'mip-form'的子级标签",
"code": "06200901",
"line": 14,
"col": 5,
"offset": 567,
"offset": 564,
"input": " <option>1</option>"
},
{
"message": "标签'option'只能是标签'mip-form'的子级标签",
"code": "06200901",
"line": 15,
"col": 5,
"offset": 590,
"offset": 587,
"input": " <option>2</option>"
}
]
6 changes: 3 additions & 3 deletions cases/121.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[
{
"message": "标签'<link rel=\"/^(canonical)|(standardhtml)$/\">'只能出现一次",
"message": "标签'<link rel=\"/^(miphtml)|(canonical)$/\">'只能出现一次",
"code": "06200701",
"line": 10,
"col": 1,
"offset": 408,
"input": "<link rel=\"standardhtml\" href=\"http://fedev.baidu.com/~wangpei07/mib/mip_cache_test/error44.htm\">"
"offset": 405,
"input": "<link rel=\"canonical\" href=\"http://fedev.baidu.com/~wangpei07/mib/mip_cache_test/error44.htm\">"
}
]
2 changes: 1 addition & 1 deletion cases/123.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-video></mip-video>"
}
]
4 changes: 2 additions & 2 deletions cases/124.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"code": "06200501",
"line": 154,
"col": 1,
"offset": 5919,
"offset": 5916,
"input": "<mip-carousel></mip-carousel>"
},
{
"message": "标签'mip-carousel'的强制性属性'height'缺失",
"code": "06200501",
"line": 154,
"col": 1,
"offset": 5919,
"offset": 5916,
"input": "<mip-carousel></mip-carousel>"
}
]
4 changes: 2 additions & 2 deletions cases/126.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-iframe></mip-iframe>"
},
{
"message": "标签'mip-iframe'的强制性属性'height'缺失",
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-iframe></mip-iframe>"
}
]
4 changes: 2 additions & 2 deletions cases/127.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-appdl></mip-appdl>"
},
{
"message": "标签'mip-appdl'的强制性属性'texttip'缺失",
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-appdl></mip-appdl>"
}
]
2 changes: 1 addition & 1 deletion cases/128.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-audio></mip-audio>"
}
]
2 changes: 1 addition & 1 deletion cases/129.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-stats-bidu></mip-stats-bidu>"
}
]
2 changes: 1 addition & 1 deletion cases/130.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-form></mip-form>"
}
]
2 changes: 1 addition & 1 deletion cases/131.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-link></mip-link>"
}
]
6 changes: 3 additions & 3 deletions cases/132.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"code": "06200201",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<script type=\"text/javascript\"></script>"
},
{
"message": "禁止使用'<script type=\"text/javascript\">'标签",
"code": "06200201",
"line": 154,
"col": 1,
"offset": 5959,
"offset": 5956,
"input": "<script type=\"text/javascript\"></script>"
},
{
"message": "禁止使用'<script type=\"application\">'标签",
"code": "06200201",
"line": 169,
"col": 1,
"offset": 6650,
"offset": 6647,
"input": "<script type=\"application\">"
}
]
2 changes: 1 addition & 1 deletion cases/133.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200501",
"line": 153,
"col": 1,
"offset": 5918,
"offset": 5915,
"input": "<mip-embed></mip-embed>"
}
]
2 changes: 1 addition & 1 deletion cases/134.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"message": "强制性标签'<script src=\"/^(https:)?//((mipcache\\.bdstatic\\.com/static/mipmain-v\\d\\.\\d\\.\\d\\.js)|(c\\.mipcdn\\.com/static/mipmain-v\\d\\.\\d\\.\\d\\.js)|(mipcache\\.bdstatic\\.com/static/v\\d/mip\\.js)|(c\\.mipcdn\\.com/static/v\\d/mip\\.js))$/\">'缺失或错误",
"message": "强制性标签'<script src=\"/^(https:)?//((mipcache\\.bdstatic\\.com/static/mipmain)|(mipcache\\.bdstatic\\.com/static/v\\d/)|(c\\.mipcdn\\.com/static/v\\d/)|(c\\.mipcdn\\.com/static/mipmain))/\">'缺失或错误",
"code": "06200101",
"line": 0,
"col": 0,
Expand Down
2 changes: 1 addition & 1 deletion cases/135.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200202",
"line": 129,
"col": 1,
"offset": 5067,
"offset": 5064,
"input": "<div class=\"o-page-ad2\" style=\"\">"
}
]
2 changes: 1 addition & 1 deletion cases/136.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"message": "强制性标签'<link rel=\"/^stylesheet$/\" href=\"/^(https:)?//((mipcache\\.bdstatic\\.com/static/mipmain-v\\d\\.\\d\\.\\d\\.css)|(c\\.mipcdn\\.com/static/mipmain-v\\d\\.\\d\\.\\d\\.css)|(mipcache\\.bdstatic\\.com/static/v\\d/mip\\.css)|(c\\.mipcdn\\.com/static/v\\d/mip\\.css))$/\">'缺失或错误",
"message": "强制性标签'<link rel=\"/^stylesheet$/\" href=\"/^(https:)?//((mipcache\\.bdstatic\\.com/static/mipmain)|(mipcache\\.bdstatic\\.com/static/v\\d/)|(c\\.mipcdn\\.com/static/v\\d/)|(c\\.mipcdn\\.com/static/mipmain))/\">'缺失或错误",
"code": "06200101",
"line": 0,
"col": 0,
Expand Down
2 changes: 1 addition & 1 deletion cases/137.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200202",
"line": 448,
"col": 5,
"offset": 15416,
"offset": 15413,
"input": " <div id=\"similar_question\" class=\"mod1\" onclick=\"\">"
}
]
2 changes: 1 addition & 1 deletion cases/139.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "06200501",
"line": 116,
"col": 1,
"offset": 6902,
"offset": 6899,
"input": "<mip-ad ></mip-ad> "
}
]
2 changes: 1 addition & 1 deletion cases/142.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"input": "<html>"
},
{
"message": "强制性标签'<script src=\"/^(https:)?//((mipcache\\.bdstatic\\.com/static/mipmain-v\\d\\.\\d\\.\\d\\.js)|(c\\.mipcdn\\.com/static/mipmain-v\\d\\.\\d\\.\\d\\.js)|(mipcache\\.bdstatic\\.com/static/v\\d/mip\\.js)|(c\\.mipcdn\\.com/static/v\\d/mip\\.js))$/\">'缺失或错误",
"message": "强制性标签'<script src=\"/^(https:)?//((mipcache\\.bdstatic\\.com/static/mipmain)|(mipcache\\.bdstatic\\.com/static/v\\d/)|(c\\.mipcdn\\.com/static/v\\d/)|(c\\.mipcdn\\.com/static/mipmain))/\">'缺失或错误",
"code": "06200101",
"line": 0,
"col": 0,
Expand Down
2 changes: 1 addition & 1 deletion cases/144.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"input": "<script src=\"https://c.mipcdn.com/static/v1/mip.js\"></script><script src=\"./bn_files/ds.js\"></script>"
},
{
"message": "强制性标签'<link rel=\"/^(canonical)|(standardhtml)$/\">'缺失或错误",
"message": "强制性标签'<link rel=\"/^(miphtml)|(canonical)$/\">'缺失或错误",
"code": "06200101",
"line": 0,
"col": 0,
Expand Down
2 changes: 1 addition & 1 deletion cases/145.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"code": "06200201",
"line": 11,
"col": 39,
"offset": 617,
"offset": 614,
"input": "<body><div id=\"BAIDU_DUP_fp_wrapper\" ><iframe id=\"BAIDU_DUP_fp_iframe\" src=\"./error3_use_tag_not_allowed_files/o.html\" ></iframe></div>"
}
]

0 comments on commit b0dbcf9

Please sign in to comment.