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

Unified Diff: test/webkit/fast/js/string-anchor-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-anchor.js ('k') | test/webkit/fast/js/string-fontcolor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/string-anchor-expected.txt
diff --git a/test/webkit/add-recovery-expected.txt b/test/webkit/fast/js/string-anchor-expected.txt
similarity index 68%
copy from test/webkit/add-recovery-expected.txt
copy to test/webkit/fast/js/string-anchor-expected.txt
index 1d961b551aa9ef467543ddbb91dc528869e52611..3a50054f1176b237eb1454cf399a3c2062d47367 100644
--- a/test/webkit/add-recovery-expected.txt
+++ b/test/webkit/fast/js/string-anchor-expected.txt
@@ -21,16 +21,20 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-This tests that speculation recovery of destructive additions on unboxed integers works.
+This is a test case for String.prototype.anchor(name).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS destructiveAddForBoxedInteger({x:1}, 2, 4) is 9
-PASS destructiveAddForBoxedInteger({x:2147483647}, 2, 4) is 2147483655
-PASS destructiveAddForBoxedInteger({x:2}, 2147483647, 4) is 4294967300
-PASS destructiveAddForBoxedInteger({x:2147483647}, 2147483647, 4) is 6442450945
-PASS destructiveAddForBoxedInteger({x:1}, 2, 2147483647) is 2147483652
+PASS '_'.anchor('b') is "<a name=\"b\">_</a>"
+PASS '<'.anchor('b') is "<a name=\"b\"><</a>"
+PASS '_'.anchor(0x2A) is "<a name=\"42\">_</a>"
+PASS '_'.anchor('"') is "<a name=\"&quot;\">_</a>"
+PASS '_'.anchor('" href="http://www.evil.com') is "<a name=\"&quot; href=&quot;http://www.evil.com\">_</a>"
+PASS String.prototype.anchor.call(0x2A, 0x2A) is "<a name=\"42\">42</a>"
+FAIL String.prototype.anchor.call(undefined) should throw TypeError: Type error. Was <a name="undefined">undefined</a>.
+FAIL String.prototype.anchor.call(null) should throw TypeError: Type error. Was <a name="undefined">null</a>.
+PASS String.prototype.anchor.length is 1
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « test/webkit/fast/js/string-anchor.js ('k') | test/webkit/fast/js/string-fontcolor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698