Skip to content

Commit

Permalink
Add base64-unencoded SVG test
Browse files Browse the repository at this point in the history
  • Loading branch information
filiph committed Nov 22, 2016
1 parent 92e699b commit 5914ec1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.project
.pub/
build/
**/packages/
**/packages

# Files created by dart2js
# (Most Dart developers will use pub build to compile Dart, use/modify these
Expand Down
1 change: 1 addition & 0 deletions dart_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ tags:
skip: >
The integration tests depend on serving the case folders, and for that
we need to know the path to those (which pub run test doesn't support).
Use `dart test/e2e_test.dart` to run these.
10 changes: 10 additions & 0 deletions test/case7/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link href="main.css" rel="stylesheet">
</head>
<body class="bg">
</body>
</html>
3 changes: 3 additions & 0 deletions test/case7/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions test/e2e_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@ void main() {
await server.destroy();
}
});

test("allows non-Base64-encoded SVG inline", () async {
var server = await Dhttpd.start(path: getServingPath(7), port: port);
try {
int result = await run([":$port"], out);
expect(result, 0);
expect(out.output, contains("0 warnings"));
expect(out.output, contains("0 errors"));
} finally {
await server.destroy();
}
});
}, tags: ["integration"]);
}

Expand Down

0 comments on commit 5914ec1

Please sign in to comment.