mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 19:18:44 +02:00
35 lines
845 B
C++
35 lines
845 B
C++
//
|
|
// TestingDialog.h
|
|
// interface/src/ui
|
|
//
|
|
// Created by Ryan Jones on 12/3/2016.
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_TestingDialog_h
|
|
#define hifi_TestingDialog_h
|
|
|
|
#include <QDialog>
|
|
#include "ScriptEngine.h"
|
|
#include "JSConsole.h"
|
|
|
|
const QString windowLabel = "Client Script Tests";
|
|
const QString testRunnerRelativePath = "/scripts/developer/tests/unit_tests/testRunner.js";
|
|
const unsigned int TESTING_CONSOLE_HEIGHT = 400;
|
|
|
|
class TestingDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
TestingDialog(QWidget* parent);
|
|
|
|
void onTestingFinished(const QString& scriptPath);
|
|
|
|
private:
|
|
std::unique_ptr<JSConsole> _console;
|
|
ScriptEnginePointer _engine;
|
|
};
|
|
|
|
#endif
|