test.done();
});
});
-
-
-// FIXME enable test
-//casper.test.begin(testName('Go From Coverage to Test File'), function (test) {
-// casper
-// .start(lib.buildUrl('source-viewer'), function () {
-// lib.setDefaultViewport();
-// lib.mockRequest('/api/l10n/index', '{}');
-// lib.mockRequestFromFile('/api/components/app', 'app.json');
-// lib.mockRequestFromFile('/api/sources/lines', 'lines.json');
-// lib.mockRequestFromFile('/api/issues/search', 'issues.json');
-// lib.mockRequestFromFile('/api/tests/test_cases', 'test-cases.json');
-// })
-//
-// .then(function () {
-// casper.waitForSelector('.component-viewer-source .source-line');
-// })
-//
-// .then(function () {
-// casper.click('.js-toggle-coverage');
-// casper.waitForSelector('.source-line-covered', function () {
-// casper.click('.source-line-covered');
-// casper.waitForSelector('.bubble-popup', function () {
-// test.assertSelectorContains('.bubble-popup', 'src/test/java/org/sonar/batch/issue/IssueCacheTest.java');
-// test.assertSelectorContains('.bubble-popup', 'should_update_existing_issue');
-// test.assertSelectorContains('.bubble-popup li[title="should_update_existing_issue"]', '293');
-//
-// lib.clearRequestMocks();
-// lib.mockRequestFromFile('/api/components/app', 'tests/app.json');
-// lib.mockRequestFromFile('/api/sources/show', 'tests/source.json');
-// lib.mockRequestFromFile('/api/resources', 'tests/resources.json');
-// lib.mockRequest('/api/coverage/show', '{}');
-// lib.mockRequestFromFile('/api/tests/show', 'tests/tests.json');
-// casper.click('.component-viewer-popup-test-file[data-key]');
-//
-// casper.waitForSelector('.js-unit-test', function () {
-// test.assertElementCount('.js-unit-test', 2);
-// });
-// });
-// });
-// })
-//
-// .run(function () {
-// test.done();
-// });
-//});