1 /* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Any copyright is dedicated to the Public Domain.
4 * http://creativecommons.org/licenses/publicdomain/
5 * Contributor: Blake Kaplan
8 //-----------------------------------------------------------------------------
9 var BUGNUMBER = 520572;
10 var summary = 'watch should innerize the object being watched';
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
22 printBugNumber(BUGNUMBER);
23 printStatus (summary);
25 if ("evalcx" in this) {
27 let s = evalcx("split");
29 evalcx('this.watch("x", function(){ n++; }); this.x = 4; x = 6', s);
31 reportCompare(expect, actual, summary);
34 this.watch('x', function(){ actual++; });
37 reportCompare(expect, actual, summary);