Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test(block-order): make tests more strict#2806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
waynzh merged 2 commits intovuejs:masterfromST-DDT:test/strict/block-order
Jul 19, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 73 additions & 19 deletionstests/lib/rules/block-order.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -203,12 +203,16 @@ tester.run('block-order', rule, {
{
message: "'<template>' should be above '<style>' on line 1.",
line: 1,
column: 16
column: 16,
endLine: 1,
endColumn: 37
},
{
message: "'<script>' should be above '<style>' on line 1.",
line: 1,
column: 37
column: 37,
endLine: 1,
endColumn: 54
}
]
},
Expand All@@ -220,7 +224,9 @@ tester.run('block-order', rule, {
{
message: "'<script>' should be above '<template>' on line 1.",
line: 1,
column: 22
column: 22,
endLine: 1,
endColumn: 39
}
]
},
Expand All@@ -241,7 +247,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<script>' should be above '<style>' on line 4.",
line: 6
line: 6,
column: 9,
endLine: 6,
endColumn: 26
}
]
},
Expand All@@ -261,7 +270,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<script>' should be above '<template>' on line 2.",
line: 3
line: 3,
column: 9,
endLine: 3,
endColumn: 26
}
]
},
Expand All@@ -281,7 +293,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<template>' should be above '<script>' on line 2.",
line: 3
line: 3,
column: 9,
endLine: 3,
endColumn: 30
}
]
},
Expand All@@ -303,7 +318,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<docs>' should be above '<template>' on line 2.",
line: 3
line: 3,
column: 9,
endLine: 3,
endColumn: 22
}
]
},
Expand All@@ -325,7 +343,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<script>' should be above '<template>' on line 2.",
line: 4
line: 4,
column: 9,
endLine: 4,
endColumn: 26
}
]
},
Expand All@@ -349,7 +370,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<script>' should be above '<template>' on line 2.",
line: 5
line: 5,
column: 9,
endLine: 5,
endColumn: 26
}
]
},
Expand All@@ -364,7 +388,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<template>' should be above '<script>' on line 2.",
line: 3
line: 3,
column: 9,
endLine: 3,
endColumn: 30
}
]
},
Expand All@@ -383,11 +410,17 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<template>' should be above '<style>' on line 2.",
line: 3
line: 3,
column: 9,
endLine: 3,
endColumn: 30
},
{
message: "'<script>' should be above '<style>' on line 2.",
line: 4
line: 4,
column: 9,
endLine: 4,
endColumn: 26
}
]
},
Expand All@@ -408,11 +441,17 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<template>' should be above '<style>' on line 2.",
line: 4
line: 4,
column: 9,
endLine: 4,
endColumn: 30
},
{
message: "'<script>' should be above '<style>' on line 2.",
line: 5
line: 5,
column: 9,
endLine: 5,
endColumn: 26
}
]
},
Expand All@@ -426,7 +465,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<script>' should be above '<style>' on line 2.",
line: 3
line: 3,
column: 9,
endLine: 3,
endColumn: 26
}
]
},
Expand All@@ -438,7 +480,10 @@ tester.run('block-order', rule, {
{
message:
"'<i18n locale=en>' should be above '<i18n locale=ja>' on line 1.",
line: 1
line: 1,
column: 26,
endLine: 1,
endColumn: 51
}
]
},
Expand All@@ -449,7 +494,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<style>' should be above '<style scoped>' on line 1.",
line: 1
line: 1,
column: 23,
endLine: 1,
endColumn: 38
}
]
},
Expand All@@ -460,7 +508,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<style scoped>' should be above '<style>' on line 1.",
line: 1
line: 1,
column: 16,
endLine: 1,
endColumn: 38
}
]
},
Expand All@@ -471,7 +522,10 @@ tester.run('block-order', rule, {
errors: [
{
message: "'<script>' should be above '<style>' on line 1.",
line: 1
line: 1,
column: 16,
endLine: 1,
endColumn: 33
}
]
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp