Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: Move PrettyPrinting tests into LayoutTests
https://bugs.webkit.org/show_bug.cgi?id=148698 Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-09-01 Reviewed by Timothy Hatcher. Source/WebInspectorUI: * Tools/PrettyPrinting/index.html: Modify the relative path to the tests which are now in LayoutTests. * UserInterface/Test.html: Load CodeMirror and related resources for Formatting. LayoutTests: * inspector/codemirror/resources/prettyprinting/css-rule-tests/*: Renamed from Source/WebInspectorUI/Tools/PrettyPrinting/css-rule-tests/*. * inspector/codemirror/resources/prettyprinting/css-tests/*: Renamed from Source/WebInspectorUI/Tools/PrettyPrinting/css-tests/*. * inspector/codemirror/resources/prettyprinting/javascript-tests/*: Renamed from Source/WebInspectorUI/Tools/PrettyPrinting/js-tests/*. Move tests from PrettyPrinting tools into LayoutTests. * inspector/codemirror/prettyprinting-css-expected.txt: Added. * inspector/codemirror/prettyprinting-css-rules-expected.txt: Added. * inspector/codemirror/prettyprinting-css-rules.html: Added. * inspector/codemirror/prettyprinting-css.html: Added. * inspector/codemirror/prettyprinting-javascript-expected.txt: Added. * inspector/codemirror/prettyprinting-javascript.html: Added. Add tests per CodeMirror mode. * inspector/codemirror/resources/prettyprinting/utilities.js: Added. (TestPage.registerInitializer): Shared code between the pretty printing tests. Canonical link: https://commits.webkit.org/166819@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
9432db4
commit 860658f09d7ffdf5f00efc6bed11819a9f597a48
Showing
87 changed files
with
344 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,25 @@ | ||
Test CSS pretty printing with CodeMirror. | ||
|
||
|
||
== Running test suite: CodeMirror.PrettyPrinting.CSS | ||
-- Running test case: CodeMirror.PrettyPrinting.CSS.basic.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSS.calc.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSS.gradient.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSS.keyframes.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSS.media-query.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSS.selectors.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSS.wrapping.css | ||
PASS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,88 @@ | ||
Test CSS Rule pretty printing with CodeMirror. | ||
|
||
|
||
== Running test suite: CodeMirror.PrettyPrinting.CSSRules | ||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.invalid-property-is-not-removed.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.remove-newline-between-values.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.remove-whitespace-before-colon.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.remove-whitespace-before-semicolon.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.remove-whitespace-before-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.remove-whitespace-before-prefixed-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.remove-whitespace-before-invalid-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.remove-whitespace-before-comment.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-comment-followed-by-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-comment-followed-by-prefixed-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-comment-followed-by-invalid-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-comment-followed-by-comment.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-property-followed-by-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-property-followed-by-prefixed-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-property-followed-by-invalid-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-property-followed-by-comment.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-invalid-property-followed-by-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-invalid-property-followed-by-prefixed-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-invalid-property-followed-by-invalid-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-invalid-property-followed-by-comment.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.split-property-without-semicolon-followed-by-comment-and-property.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.add-whitespace-between-values.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.add-whitespace-between-rules.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.add-whitespace-after-colon.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.add-whitespace-after-comma.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.do-not-append-semicolon.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.do-not-add-whitespace-before-prefixed-property-value.css | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.CSSRules.keep-prefixed-value.css | ||
PASS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="../../http/tests/inspector/resources/inspector-test.js"></script> | ||
<script src="resources/prettyprinting/utilities.js"></script> | ||
<script> | ||
function test() | ||
{ | ||
let suite = InspectorTest.createAsyncSuite("CodeMirror.PrettyPrinting.CSSRules"); | ||
|
||
addPrettyPrintingTests(suite, "css-rule", [ | ||
"resources/prettyprinting/css-rule-tests/invalid-property-is-not-removed.css", | ||
"resources/prettyprinting/css-rule-tests/remove-newline-between-values.css", | ||
"resources/prettyprinting/css-rule-tests/remove-whitespace-before-colon.css", | ||
"resources/prettyprinting/css-rule-tests/remove-whitespace-before-semicolon.css", | ||
"resources/prettyprinting/css-rule-tests/remove-whitespace-before-property.css", | ||
"resources/prettyprinting/css-rule-tests/remove-whitespace-before-prefixed-property.css", | ||
"resources/prettyprinting/css-rule-tests/remove-whitespace-before-invalid-property.css", | ||
"resources/prettyprinting/css-rule-tests/remove-whitespace-before-comment.css", | ||
"resources/prettyprinting/css-rule-tests/split-comment-followed-by-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-comment-followed-by-prefixed-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-comment-followed-by-invalid-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-comment-followed-by-comment.css", | ||
"resources/prettyprinting/css-rule-tests/split-property-followed-by-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-property-followed-by-prefixed-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-property-followed-by-invalid-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-property-followed-by-comment.css", | ||
"resources/prettyprinting/css-rule-tests/split-invalid-property-followed-by-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-invalid-property-followed-by-prefixed-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-invalid-property-followed-by-invalid-property.css", | ||
"resources/prettyprinting/css-rule-tests/split-invalid-property-followed-by-comment.css", | ||
"resources/prettyprinting/css-rule-tests/split-property-without-semicolon-followed-by-comment-and-property.css", | ||
"resources/prettyprinting/css-rule-tests/add-whitespace-between-values.css", | ||
"resources/prettyprinting/css-rule-tests/add-whitespace-between-rules.css", | ||
"resources/prettyprinting/css-rule-tests/add-whitespace-after-colon.css", | ||
"resources/prettyprinting/css-rule-tests/add-whitespace-after-comma.css", | ||
"resources/prettyprinting/css-rule-tests/do-not-append-semicolon.css", | ||
"resources/prettyprinting/css-rule-tests/do-not-add-whitespace-before-prefixed-property-value.css", | ||
"resources/prettyprinting/css-rule-tests/keep-prefixed-value.css", | ||
]); | ||
|
||
suite.runTestCasesAndFinish(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Test CSS Rule pretty printing with CodeMirror.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="../../http/tests/inspector/resources/inspector-test.js"></script> | ||
<script src="resources/prettyprinting/utilities.js"></script> | ||
<script> | ||
function test() | ||
{ | ||
let suite = InspectorTest.createAsyncSuite("CodeMirror.PrettyPrinting.CSS"); | ||
|
||
addPrettyPrintingTests(suite, "text/css", [ | ||
"resources/prettyprinting/css-tests/basic.css", | ||
"resources/prettyprinting/css-tests/calc.css", | ||
"resources/prettyprinting/css-tests/gradient.css", | ||
"resources/prettyprinting/css-tests/keyframes.css", | ||
"resources/prettyprinting/css-tests/media-query.css", | ||
"resources/prettyprinting/css-tests/selectors.css", | ||
"resources/prettyprinting/css-tests/wrapping.css", | ||
]); | ||
|
||
suite.runTestCasesAndFinish(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Test CSS pretty printing with CodeMirror.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,13 @@ | ||
Test JavaScript pretty printing with CodeMirror. | ||
|
||
|
||
== Running test suite: CodeMirror.PrettyPrinting.JavaScript | ||
-- Running test case: CodeMirror.PrettyPrinting.JavaScript.block-comment.js | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.JavaScript.single-statement-blocks.js | ||
PASS | ||
|
||
-- Running test case: CodeMirror.PrettyPrinting.JavaScript.switch-case-default.js | ||
PASS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="../../http/tests/inspector/resources/inspector-test.js"></script> | ||
<script src="resources/prettyprinting/utilities.js"></script> | ||
<script> | ||
function test() | ||
{ | ||
let suite = InspectorTest.createAsyncSuite("CodeMirror.PrettyPrinting.JavaScript"); | ||
|
||
addPrettyPrintingTests(suite, "text/javascript", [ | ||
"resources/prettyprinting/javascript-tests/block-comment.js", | ||
"resources/prettyprinting/javascript-tests/single-statement-blocks.js", | ||
"resources/prettyprinting/javascript-tests/switch-case-default.js", | ||
]); | ||
|
||
suite.runTestCasesAndFinish(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Test JavaScript pretty printing with CodeMirror.</p> | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.