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

Unified Diff: test/webkit/fast/js/string-fontsize-expected.txt

Issue 21070002: Migrate more tests from blink repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
« no previous file with comments | « test/webkit/fast/js/string-fontsize.js ('k') | test/webkit/fast/js/string-link.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/string-fontsize-expected.txt
diff --git a/test/webkit/Array-isArray-expected.txt b/test/webkit/fast/js/string-fontsize-expected.txt
similarity index 66%
copy from test/webkit/Array-isArray-expected.txt
copy to test/webkit/fast/js/string-fontsize-expected.txt
index 5af2c158faa24d6a60295b5dd465fc88f5dc5ba5..c114f74b15fa1e952c3c0c04b858ceca31d13aac 100644
--- a/test/webkit/Array-isArray-expected.txt
+++ b/test/webkit/fast/js/string-fontsize-expected.txt
@@ -21,25 +21,21 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-Test to ensure correct behaviour of Array.array
+This is a test case for String.prototype.fontsize(size).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS Array.isArray([]) is true
-PASS Array.isArray(new Array) is true
-PASS Array.isArray(Array()) is true
-PASS Array.isArray('abc'.match(/(a)*/g)) is true
-PASS (function(){ return Array.isArray(arguments); })() is false
-PASS Array.isArray() is false
-PASS Array.isArray(null) is false
-PASS Array.isArray(undefined) is false
-PASS Array.isArray(true) is false
-PASS Array.isArray(false) is false
-PASS Array.isArray('a string') is false
-PASS Array.isArray({}) is false
-PASS Array.isArray({length: 5}) is false
-PASS Array.isArray({__proto__: Array.prototype, length:1, 0:1, 1:2}) is false
+PASS '_'.fontsize('"') is "<font size=\"&quot;\">_</font>"
+PASS '_'.fontsize('b') is "<font size=\"b\">_</font>"
+PASS '<'.fontsize('b') is "<font size=\"b\"><</font>"
+PASS '_'.fontsize(0x2A) is "<font size=\"42\">_</font>"
+PASS '_'.fontsize('"') is "<font size=\"&quot;\">_</font>"
+PASS '_'.fontsize('" color="b') is "<font size=\"&quot; color=&quot;b\">_</font>"
+PASS String.prototype.fontsize.call(0x2A, 0x2A) is "<font size=\"42\">42</font>"
+FAIL String.prototype.fontsize.call(undefined) should throw TypeError: Type error. Was <font size="undefined">undefined</font>.
+FAIL String.prototype.fontsize.call(null) should throw TypeError: Type error. Was <font size="undefined">null</font>.
+PASS String.prototype.fontsize.length is 1
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « test/webkit/fast/js/string-fontsize.js ('k') | test/webkit/fast/js/string-link.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698