]> source.dussan.org Git - sonarqube.git/commitdiff
kill unused test 108/head
authorStas Vilchik <vilchiks@gmail.com>
Thu, 19 Feb 2015 13:31:41 +0000 (14:31 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 19 Feb 2015 13:31:41 +0000 (14:31 +0100)
server/sonar-web/src/main/js/tests/e2e/tests/source-viewer-spec.js

index 4346ecfe1ea2156b9e9fc39d9595ebe527b9d3a5..45ab591bc398ad9d161ec53357219c8295686514 100644 (file)
@@ -120,49 +120,3 @@ casper.test.begin(testName('Test File'), function (test) {
         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();
-//      });
-//});