<commit_before>import QtQuick 2.0
import QtTest 1.0
import QuickPromise 1.0

TestSuite {
    name : "Promise_RejectWhen_Signal"

    Timer {
        id: timer;
        repeat: true
        interval : 50
    }

    Promise {
        id : promise1
        rejectWhen: timer.onTriggered
    }

    function test_rejectwhen_signal() {
        compare(promise1.isRejected,false);
        wait(10);
        compare(promise1.isRejected,false);
        timer.start();
        wait(10);
        compare(promise1.isRejected,false);
        wait(50);
        compare(promise1.isRejected,true);
    }

    QtObject {
        id: customObject

        signal custom(string v1, int v2);
    }

    Promise {
        id: promise2<commit_msg>Attempt to fix a broken test case<commit_after>import QtQuick 2.0
import QtTest 1.0
import QuickPromise 1.0

TestSuite {
    name : "Promise_RejectWhen_Signal"

    Timer {
        id: timer;
        repeat: true
        interval : 50
    }

    Promise {
        id : promise1
        rejectWhen: timer.onTriggered
    }

    function test_rejectwhen_signal() {
        compare(promise1.isRejected,false);
        wait(10);
        compare(promise1.isRejected,false);
        timer.start();
        wait(10);
        compare(promise1.isRejected,false);

        tryCompare(promise1, 'isRejected', true);
    }

    QtObject {
        id: customObject

        signal custom(string v1, int v2);
    }

    Promise {
        id: promise2
{'fraction_non_alphanumeric': 0.09097127222982217, 'fraction_numerical': 0.028727770177838577, 'mean_word_length': 2.0352697095435683, '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': '6882341', 'n_tokens_mistral': 488, 'n_tokens_neox': 450, 'n_words': 96}