Lines Matching refs:sticky
40 var sticky = /foo.bar/y;
42 assertTrue(!!"foo*bar".match(sticky));
43 assertEquals(7, sticky.lastIndex);
44 assertFalse(!!"..foo*bar".match(sticky));
78 assertTrue(stickyplainglobal.sticky);
79 stickyplainglobal.sticky = false;
93 assertTrue(stickyglobal.sticky);
94 stickyglobal.sticky = false;
95 assertTrue(stickyglobal.sticky);
109 assertTrue(stickyglobal2.sticky);
110 stickyglobal2.sticky = false;
111 assertTrue(stickyglobal2.sticky);
113 sticky.lastIndex = -1; // Causes sticky regexp to fail fast
114 assertFalse(sticky.test("..foo.bar"));
115 assertEquals(0, sticky.lastIndex);
117 sticky.lastIndex = -1; // Causes sticky regexp to fail fast
118 assertFalse(!!sticky.exec("..foo.bar"));
119 assertEquals(0, sticky.lastIndex);