diff --git a/IPython/html/tests/widgets/widget.js b/IPython/html/tests/widgets/widget.js
index 9364f03..d51a833 100644
--- a/IPython/html/tests/widgets/widget.js
+++ b/IPython/html/tests/widgets/widget.js
@@ -118,8 +118,8 @@ casper.notebook_test(function () {
' b = CInt(0, sync=True)\n' +
' c = CInt(0, sync=True)\n' +
' d = CInt(-1, sync=True)\n' + // See if it sends a full state.
- ' def _handle_receive_state(self, sync_data):\n' +
- ' widgets.Widget._handle_receive_state(self, sync_data)\n'+
+ ' def set_state(self, sync_data):\n' +
+ ' widgets.Widget.set_state(self, sync_data)\n'+
' self.d = len(sync_data)\n' +
'multiset = MultiSetWidget()\n' +
'display(multiset)\n' +