Lines Matching defs:Point
31 function Point(x, y) {
36 Point.prototype.distanceTo = function(p) {
41 p1 = new Point(1,1);
42 p2 = new Point(2,2);
53 return new Point(x, y);
79 // 0: Call distance on Point where distance is a property on the prototype
80 // 1: Call distance on Point where distance is a direct property
83 assertEquals("#<Point>.distanceTo(p=#<Point>)", exec_state.frame(0).invocationText());
84 assertEquals("#<Point>.distanceTo(p=#<Point>)", exec_state.frame(1).invocationText());
85 assertEquals("#<Array>[2](aka distance)(p=#<Point>, q=#<Point>)", exec_state.frame(2).invocationText());
90 // 0: Call Point constructor
93 assertEquals("new Point(x=0, y=0)", exec_state.frame(0).invocationText());
107 // Set a break point and call to invoke the debug event listener.
114 // Set a break point and call to invoke the debug event listener.
117 Debug.setBreakPoint(Point, 0, 0);