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

Unified Diff: test/webkit/fast/js/string-link-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-link.js ('k') | test/webkit/fast/js/toString-number.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/string-link-expected.txt
diff --git a/test/webkit/apply-varargs-expected.txt b/test/webkit/fast/js/string-link-expected.txt
similarity index 68%
copy from test/webkit/apply-varargs-expected.txt
copy to test/webkit/fast/js/string-link-expected.txt
index 9c0ccb95ec1b6acf2601f1b70d3d6f31f048f9b5..afacbe6bb91737d156501e47d306b67d8bb33cec 100644
--- a/test/webkit/apply-varargs-expected.txt
+++ b/test/webkit/fast/js/string-link-expected.txt
@@ -21,20 +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 that we properly fill in missing args with "undefined" in JIT code.
+This is a test case for String.prototype.link(href).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS caller(0) is undefined
-PASS caller(1) is undefined
-PASS caller(2) is undefined
-PASS caller(3) is undefined
-PASS caller(4) is undefined
-PASS caller(5) is undefined
-PASS caller(6) is undefined
-PASS caller(7) is undefined
-PASS caller(8) is undefined
+PASS '_'.link('"') is "<a href=\"&quot;\">_</a>"
+PASS '_'.link('b') is "<a href=\"b\">_</a>"
+PASS '<'.link('b') is "<a href=\"b\"><</a>"
+PASS '_'.link(0x2A) is "<a href=\"42\">_</a>"
+PASS '_'.link('"') is "<a href=\"&quot;\">_</a>"
+PASS '_'.link('" target="_blank') is "<a href=\"&quot; target=&quot;_blank\">_</a>"
+PASS String.prototype.link.call(0x2A, 0x2A) is "<a href=\"42\">42</a>"
+FAIL String.prototype.link.call(undefined) should throw TypeError: Type error. Was <a href="undefined">undefined</a>.
+FAIL String.prototype.link.call(null) should throw TypeError: Type error. Was <a href="undefined">null</a>.
+PASS String.prototype.link.length is 1
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « test/webkit/fast/js/string-link.js ('k') | test/webkit/fast/js/toString-number.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698