There are a 8 basic test cases of varying types including text only html...

There are a 8 basic test cases of varying types including text only html files, some html files with forms, an image, and a color-gradient.
BUG=388517

Review URL: https://codereview.chromium.org/416433002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285527 0039d316-1c4b-4281-b951-d872f2087c98
parent 66b4aeec
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="300" height="300"></canvas>
<script>
var canvas = document.getElementById("myCanvas");
var context = canvas.getContext("2d");
var gradient = context.createLinearGradient(0, 0, 300, 300);
gradient.addColorStop(0, "red");
gradient.addColorStop(1, "green");
context.fillStyle = gradient;
context.fillRect(0, 0, 300, 300);
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<form>
<input type="radio" name="radios" value="one">RadioOne</br>
<input type="radio" name="radios" value="two" checked="true">RadioTwo</br>
<input type="radio" name="radios" value="three">RadioThree
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<form>
TextBoxOne: <input type="text"></input></br>
TextBoxTwo: <input type="text" value="default text"></input>
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<img src="resources/test_image.jpg"></img>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<div style="width:500px;height:500px;border:1px solid #000;"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<canvas id="canvas" width="500", height="500"> </canvas>
<script>
var canvas = document.getElementById("canvas");
var width = canvas.width;
var height = canvas.height;
var ctx = canvas.getContext("2d");
for (var i = 0; i < width; i += 10) {
ctx.moveTo(i, 0);
ctx.lineTo(i, height);
ctx.stroke();
}
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<ul>
<li>1</li>
<ul>
<li>1.a</li>
<li>1.b</li>
</ul>
<li>2</li>
<li>3</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment