michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * HORIZONTAL TAB (U+0009) between any two tokens is allowed michael@0: * michael@0: * @path ch07/7.2/S7.2_A1.1_T1.js michael@0: * @description Insert HORIZONTAL TAB(\u0009 and \t) between tokens of var x=1 michael@0: */ michael@0: michael@0: // CHECK#1 michael@0: eval("\u0009var\u0009x\u0009=\u00091\u0009"); michael@0: if (x !== 1) { michael@0: $ERROR('#1: eval("\\u0009var\\u0009x\\u0009=\\u00091\\u0009"); x === 1. Actual: ' + (x)); michael@0: } michael@0: michael@0: //CHECK#2 michael@0: eval("\u0009" + "var" + "\u0009" + "x" + "\u0009" + "=" + "\u0009" + "1" + "\u0009"); michael@0: if (x !== 1) { michael@0: $ERROR('#2: eval("\\u0009" + "var" + "\\u0009" + "x" + "\\u0009" + "=" + "\\u0009" + "1" + "\\u0009"); x === 1. Actual: ' + (x)); michael@0: } michael@0: michael@0: //CHECK#3 michael@0: eval("\tvar\tx\t=\t1\t"); michael@0: if (x !== 1) { michael@0: $ERROR('#3: eval("\\tvar\\tx\\t=\\t1\\t"); x === 1. Actual: ' + (x)); michael@0: } michael@0: michael@0: //CHECK#4 michael@0: eval("\t" + "var" + "\t" + "x" + "\t" + "=" + "\t" + "1" + "\t"); michael@0: if (x !== 1) { michael@0: $ERROR('#4: eval("\\t" + "var" + "\\t" + "x" + "\\t" + "=" + "\\t" + "1" + "\\t"); x === 1. Actual: ' + (x)); michael@0: } michael@0: michael@0: //CHECK#5 michael@0: eval("\u0009" + "var" + "\t" + "x" + "\u0009" + "=" + "\t" + "1" + "\u0009"); michael@0: if (x !== 1) { michael@0: $ERROR('#5: eval("\\u0009" + "var" + "\\t" + "x" + "\\u0009" + "=" + "\\t" + "1" + "\\u0009"); x === 1. Actual: ' + (x)); michael@0: } michael@0: