Bug 906337 - convert test-widget.js to use the new test framework