1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/xpconnect/tests/unit/test_reflect_parse.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +/* 1.9 +({ 1.10 + loc:{start:{line:1, column:0}, end:{line:1, column:12}, source:null}, 1.11 + type:"Program", 1.12 + body:[ 1.13 + { 1.14 + loc:{start:{line:1, column:0}, end:{line:1, column:12}, source:null}, 1.15 + type:"ExpressionStatement", 1.16 + expression:{ 1.17 + loc:{start:{line:1, column:0}, end:{line:1, column:12}, source:null}, 1.18 + type:"Literal", 1.19 + value:"use strict" 1.20 + } 1.21 + } 1.22 + ] 1.23 +}) 1.24 +*/ 1.25 + 1.26 +function run_test() { 1.27 + // Reflect.parse is better tested in js shell; this basically tests its presence. 1.28 + var parseData = Reflect.parse('"use strict"'); 1.29 + do_check_eq(parseData.body[0].expression.value, "use strict"); 1.30 +}