diff --git a/test/annexB/B.2.3.10.js b/test/annexB/B.2.3.10.js
new file mode 100644
index 0000000000..58b1118dc9
--- /dev/null
+++ b/test/annexB/B.2.3.10.js
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.link returns a string of HTML describing a single HTML
+ anchor element. The element's content is the `this` value of the function
+ invocation, coerced to a string. If specified, the first argument will be
+ coerced to a string, escaped, and set as the element's `href` attribute.
+ es6id: B.2.3.10
+ ---*/
+
+assert.sameValue('_'.link('b'), '_');
+assert.sameValue('<'.link('<'), '<');
+assert.sameValue('_'.link(0x2A), '_');
+assert.sameValue('_'.link('\x22'), '_');
+assert.sameValue(String.prototype.link.call(0x2A, 0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.link.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.link.call(null);
+});
+assert.sameValue(String.prototype.link.length, 1);
diff --git a/test/annexB/B.2.3.11.js b/test/annexB/B.2.3.11.js
new file mode 100644
index 0000000000..2fc9a85a8a
--- /dev/null
+++ b/test/annexB/B.2.3.11.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.small returns a string of HTML describing a single HTML
+ small print element. The element's content is the `this` value of the
+ function invocation, coerced to a string.
+ es6id: B.2.3.11
+ ---*/
+
+assert.sameValue('_'.small(), '_');
+assert.sameValue('<'.small(), '<');
+assert.sameValue(String.prototype.small.call(0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.small.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.small.call(null);
+});
+assert.sameValue(String.prototype.small.length, 0);
diff --git a/test/annexB/B.2.3.12.js b/test/annexB/B.2.3.12.js
new file mode 100644
index 0000000000..6dee590e6c
--- /dev/null
+++ b/test/annexB/B.2.3.12.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.strike returns a string of HTML describing a single HTML
+ strikethrough element. The element's content is the `this` value of the
+ function invocation, coerced to a string.
+ es6id: B.2.3.12
+ ---*/
+
+assert.sameValue('_'.strike(), '_');
+assert.sameValue('<'.strike(), '<');
+assert.sameValue(String.prototype.strike.call(0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.strike.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.strike.call(null);
+});
+assert.sameValue(String.prototype.strike.length, 0);
diff --git a/test/annexB/B.2.3.13.js b/test/annexB/B.2.3.13.js
new file mode 100644
index 0000000000..64a9c830cd
--- /dev/null
+++ b/test/annexB/B.2.3.13.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.sub returns a string of HTML describing a single HTML
+ subscript element. The element's content is the `this` value of the
+ function invocation, coerced to a string.
+ es6id: B.2.3.13
+ ---*/
+
+assert.sameValue('_'.sub(), '_');
+assert.sameValue('<'.sub(), '<');
+assert.sameValue(String.prototype.sub.call(0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.sub.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.sub.call(null);
+});
+assert.sameValue(String.prototype.sub.length, 0);
diff --git a/test/annexB/B.2.3.14.js b/test/annexB/B.2.3.14.js
new file mode 100644
index 0000000000..f20c3b705c
--- /dev/null
+++ b/test/annexB/B.2.3.14.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.sup returns a string of HTML describing a single HTML
+ superscript element. The element's content is the `this` value of the
+ function invocation, coerced to a string.
+ es6id: B.2.3.14
+ ---*/
+
+assert.sameValue('_'.sup(), '_');
+assert.sameValue('<'.sup(), '<');
+assert.sameValue(String.prototype.sup.call(0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.sup.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.sup.call(null);
+});
+assert.sameValue(String.prototype.sup.length, 0);
diff --git a/test/annexB/B.2.3.2.js b/test/annexB/B.2.3.2.js
new file mode 100644
index 0000000000..f39c60510f
--- /dev/null
+++ b/test/annexB/B.2.3.2.js
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.anchor returns a string of HTML describing a single HTML
+ anchor element. The element's content is the `this` value of the function
+ invocation, coerced to a string. If specified, the first argument will be
+ coerced to a string, escaped, and set as the element's `name` attribute.
+ es6id: B.2.3.2
+ ---*/
+
+assert.sameValue('_'.anchor('b'), '_');
+assert.sameValue('<'.anchor('<'), '<');
+assert.sameValue('_'.anchor(0x2A), '_');
+assert.sameValue('_'.anchor('\x22'), '_');
+assert.sameValue(String.prototype.anchor.call(0x2A, 0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.anchor.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.anchor.call(null);
+});
+assert.sameValue(String.prototype.anchor.length, 1);
diff --git a/test/annexB/B.2.3.3.js b/test/annexB/B.2.3.3.js
new file mode 100644
index 0000000000..380919d741
--- /dev/null
+++ b/test/annexB/B.2.3.3.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.big returns a string of HTML describing a single HTML
+ big element. The element's content is the `this` value of the function
+ invocation, coerced to a string.
+ es6id: B.2.3.3
+ ---*/
+
+assert.sameValue('_'.big(), '_');
+assert.sameValue('<'.big(), '<');
+assert.sameValue(String.prototype.big.call(0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.big.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.big.call(null);
+});
+assert.sameValue(String.prototype.big.length, 0);
diff --git a/test/annexB/B.2.3.4.js b/test/annexB/B.2.3.4.js
new file mode 100644
index 0000000000..619e591d29
--- /dev/null
+++ b/test/annexB/B.2.3.4.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.blink returns a string of HTML describing a single HTML
+ blink element. The element's content is the `this` value of the function
+ invocation, coerced to a string.
+ es6id: B.2.3.4
+ ---*/
+
+assert.sameValue('_'.blink(), '');
+assert.sameValue('<'.blink(), '');
+assert.sameValue(String.prototype.blink.call(0x2A), '');
+assert.throws(TypeError, function() {
+ String.prototype.blink.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.blink.call(null);
+});
+assert.sameValue(String.prototype.blink.length, 0);
diff --git a/test/annexB/B.2.3.5.js b/test/annexB/B.2.3.5.js
new file mode 100644
index 0000000000..54e9d5bbdf
--- /dev/null
+++ b/test/annexB/B.2.3.5.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.bold returns a string of HTML describing a single HTML
+ bold element. The element's content is the `this` value of the function
+ invocation, coerced to a string.
+ es6id: B.2.3.5
+ ---*/
+
+assert.sameValue('_'.bold(), '_');
+assert.sameValue('<'.bold(), '<');
+assert.sameValue(String.prototype.bold.call(0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.bold.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.bold.call(null);
+});
+assert.sameValue(String.prototype.bold.length, 0);
diff --git a/test/annexB/B.2.3.6.js b/test/annexB/B.2.3.6.js
new file mode 100644
index 0000000000..1d5a18543c
--- /dev/null
+++ b/test/annexB/B.2.3.6.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.fixed returns a string of HTML describing a single HTML
+ teletype text element. The element's content is the `this` value of the
+ function invocation, coerced to a string.
+ es6id: B.2.3.6
+ ---*/
+
+assert.sameValue('_'.fixed(), '_');
+assert.sameValue('<'.fixed(), '<');
+assert.sameValue(String.prototype.fixed.call(0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.fixed.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.fixed.call(null);
+});
+assert.sameValue(String.prototype.fixed.length, 0);
diff --git a/test/annexB/B.2.3.7.js b/test/annexB/B.2.3.7.js
new file mode 100644
index 0000000000..4bc59d21ad
--- /dev/null
+++ b/test/annexB/B.2.3.7.js
@@ -0,0 +1,29 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.fontcolor returns a string of HTML describing a single
+ HTML font element. The element's content is the `this` value of the
+ function invocation, coerced to a string. If specified, the first argument
+ will be coerced to a string, escaped, and set as the element's `color`
+ attribute.
+ es6id: B.2.3.7
+ ---*/
+
+assert.sameValue('_'.fontcolor('b'), '_');
+assert.sameValue('<'.fontcolor('<'), '<');
+assert.sameValue('_'.fontcolor(0x2A), '_');
+assert.sameValue('_'.fontcolor('\x22'), '_');
+assert.sameValue(String.prototype.fontcolor.call(0x2A, 0x2A),
+ '42');
+assert.throws(TypeError, function() {
+ String.prototype.fontcolor.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.fontcolor.call(null);
+});
+assert.sameValue(String.prototype.fontcolor.length, 1);
diff --git a/test/annexB/B.2.3.8.js b/test/annexB/B.2.3.8.js
new file mode 100644
index 0000000000..f966275b87
--- /dev/null
+++ b/test/annexB/B.2.3.8.js
@@ -0,0 +1,29 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.fontsize returns a string of HTML describing a single
+ HTML font element. The element's content is the `this` value of the
+ function invocation, coerced to a string. If specified, the first argument
+ will be coerced to a string, escaped, and set as the element's `size`
+ attribute.
+ es6id: B.2.3.8
+ ---*/
+
+assert.sameValue('_'.fontsize('b'), '_');
+assert.sameValue('<'.fontsize('<'), '<');
+assert.sameValue('_'.fontsize(0x2A), '_');
+assert.sameValue('_'.fontsize('\x22'), '_');
+assert.sameValue(String.prototype.fontsize.call(0x2A, 0x2A),
+ '42');
+assert.throws(TypeError, function() {
+ String.prototype.fontsize.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.fontsize.call(null);
+});
+assert.sameValue(String.prototype.fontsize.length, 1);
diff --git a/test/annexB/B.2.3.9.js b/test/annexB/B.2.3.9.js
new file mode 100644
index 0000000000..e81cd0f1e3
--- /dev/null
+++ b/test/annexB/B.2.3.9.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+// Tests taken from:
+// http://mathias.html5.org/tests/javascript/string/
+
+/*---
+ description: >
+ String.prototype.italics returns a string of HTML describing a single HTML
+ italic element. The element's content is the `this` value of the function
+ invocation, coerced to a string.
+ es6id: B.2.3.9
+ ---*/
+
+assert.sameValue('_'.italics(), '_');
+assert.sameValue('<'.italics(), '<');
+assert.sameValue(String.prototype.italics.call(0x2A), '42');
+assert.throws(TypeError, function() {
+ String.prototype.italics.call(undefined);
+});
+assert.throws(TypeError, function() {
+ String.prototype.italics.call(null);
+});
+assert.sameValue(String.prototype.italics.length, 0);