Commit 53704792 authored by darin@apple.com's avatar darin@apple.com

2009-04-23 Darin Adler <darin@apple.com>

        Removed some stray files that Geoff missed when rolling out changes.

        * svg/custom/resources/svg-fonts-in-text-controls.js: Removed.
        * svg/custom/svg-fonts-in-text-controls-expected.txt: Removed.



git-svn-id: svn://svn.chromium.org/blink/trunk@42801 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 200b0299
2009-04-23 Darin Adler <darin@apple.com>
Removed some stray files that Geoff missed when rolling out changes.
* svg/custom/resources/svg-fonts-in-text-controls.js: Removed.
* svg/custom/svg-fonts-in-text-controls-expected.txt: Removed.
2009-04-23 Gavin Barraclough <barraclough@apple.com>
Reviewed by Geoff "Dread Pirate Roberts" Garen.
......
description('This tests that the width of textareas and inputs is correctly calculated based on the metrics of the SVG font.');
var styleElement = document.createElement('style');
// FIXME: Is there a better way to create a font-face from JS?
styleElement.innerText = '@font-face { font-family: "SVGraffiti"; src: url("resources/graffiti.svg#SVGraffiti") format(svg) }';
document.getElementsByTagName('head')[0].appendChild(styleElement);
var textarea = document.createElement('textarea');
textarea.style.fontFamily = 'SVGraffiti';
textarea.cols = 20;
document.body.appendChild(textarea);
shouldBe(String(textarea.offsetWidth), '141');
var input = document.createElement('input');
input.style.fontFamily = 'SVGraffiti';
input.size = 20;
document.body.appendChild(input);
shouldBe(String(input.offsetWidth), '140');
var successfullyParsed = true;
This tests that the width of textareas and inputs is correctly calculated based on the metrics of the SVG font.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS 141 is 141
PASS 140 is 140
PASS successfullyParsed is true
TEST COMPLETE
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