string-form-feed.js (617B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: FORM FEED (U+000C) may occur within strings 6 es5id: 7.2_A2.3_T1 7 description: Use FORM FEED(\u000C and \f) 8 ---*/ 9 10 // CHECK#1 11 if (eval("'\u000Cstr\u000Cing\u000C'") !== "\u000Cstr\u000Cing\u000C") { 12 throw new Test262Error('#1: eval("\'\\u000Cstr\\u000Cing\\u000C\'") === "\\u000Cstr\\u000Cing\\u000C"'); 13 } 14 15 //CHECK#2 16 if (eval("'\fstr\fing\f'") !== "\fstr\fing\f") { 17 throw new Test262Error('#2: eval("\'\\fstr\\fing\\f\'") === "\\fstr\\fing\\f"'); 18 } 19 20 reportCompare(0, 0);