Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: LayoutTests/svg/dom/viewspec-parser-1.html

Issue 17143003: Rewrite SVG viewspec tests to not be fuzzer tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update for landing Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/dom/viewspec-parser-1.html
diff --git a/LayoutTests/svg/dom/viewspec-parser-1.html b/LayoutTests/svg/dom/viewspec-parser-1.html
deleted file mode 100644
index c415b22161966c630d38e5608fd01c6478af9ef9..0000000000000000000000000000000000000000
--- a/LayoutTests/svg/dom/viewspec-parser-1.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<html>
-<head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-<script src="resources/scripted-random.js"></script>
-<script src="resources/viewspec-parser.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
- // maps a viewspec attribute to its minimum argument count.
- var attributes = {
- viewBox: 6,
- preserveAspectRatio: 1,
- transform: 1,
- zoomAndPan: 1,
- viewTarget: 1
- };
-
- var tests = [
- "svgView(viewBox(0,0,200,200)))",
- "svgView(preserveAspectRatio(xMaxYMin slice))",
- "svgView(preserveAspectRatio(xMaxYMin))",
- "svgView(viewBox(1,2,3,4);preserveAspectRatio(xMaxYMin))",
- "svgView(zoomAndPan(disable))",
- "svgView(viewTarget(#myElementId))",
- "svgView",
- "svgView(",
- "svgView()",
- "svgView(" + String.fromCharCode(0),
- "svgView(transform(scale(2));;)",
- "svgView(transform(scale(2));x", // used to hang
- "svgView(transform(scale(.5)))",
- "svgView(;transform(scale(.5)))",
- "svgView(;;transform(scale(.5)))",
- "svgView(transform(scale(.5));transform(scale(2));transform(scale(2)))",
- ];
-
- for (var attribute in attributes) {
- // attribute names that are "off by one"
- var extraChar = attribute.charAt(attribute.length - 1);
- tests.push("svgView(" + attribute + extraChar + "(0, 0)");
- tests.push("svgView(" + attribute.substring(0, attribute.length - 1) + "(0, 0)");
-
- // Empty-ish attributes
- tests.push("svgView(" + attribute);
- tests.push("svgView(" + attribute + String.fromCharCode(0));
- }
-
- if (window.testRunner)
- testRunner.waitUntilDone();
-
- startViewspecTests(tests);
-
-</script>
-</html>
« no previous file with comments | « LayoutTests/svg/dom/viewspec-aspectparams-expected.html ('k') | LayoutTests/svg/dom/viewspec-parser-1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698