Bug 906385 - convert test-traits-core.js to use the new test framework