<commit_before>var x = require('casper').selectXPath;
var mouse = require('mouse').create(casper);

casper.test.begin('basic tooltip is functional', 7, function(test) {
    casper.start("tests/functional.html", function() {
        test.assertExists(x('/html/body/div'));
        test.assertSelectorHasText(x('/html/body/div'), 'Hover over me!');
        test.assertSelectorHasText(x('/html/body/div/div[2]'), 'Not tooltip content!');
        test.assertSelectorHasText(x('/html/body/div/div[1]'), 'Tooltip content!');
        this.mouse.move(500, 500);
        test.assertNotVisible(x('/html/body/div/div[1]'));
        this.mouse.move(50, 10);
        test.assertVisible(x('/html/body/div/div[1]'));
        this.mouse.move(500, 100);
        test.assertNotVisible(x('/html/body/div/div[1]'));
    }).run(function() {
        test.done();
    });
});<commit_msg>fixing order of tests to better reflect dom<commit_after>var x = require('casper').selectXPath;
var mouse = require('mouse').create(casper);

casper.test.begin('basic tooltip is functional', 7, function(test) {
    casper.start("tests/functional.html", function() {
        test.assertExists(x('/html/body/div'));
        test.assertSelectorHasText(x('/html/body/div'), 'Hover over me!');
        test.assertSelectorHasText(x('/html/body/div/div[1]'), 'Tooltip content!');
        test.assertSelectorHasText(x('/html/body/div/div[2]'), 'Not tooltip content!');
        this.mouse.move(500, 500);
        test.assertNotVisible(x('/html/body/div/div[1]'));
        this.mouse.move(50, 10);
        test.assertVisible(x('/html/body/div/div[1]'));
        this.mouse.move(500, 100);
        test.assertNotVisible(x('/html/body/div/div[1]'));
    }).run(function() {
        test.done();
    });
});
{'fraction_non_alphanumeric': 0.2025028441410694, 'fraction_numerical': 0.02502844141069397, 'mean_word_length': 3.4872448979591835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5069158', 'n_tokens_mistral': 605, 'n_tokens_neox': 576, 'n_words': 81}