History

Complete console.trace and added a testcases for all 13 functions.

NeetBhagat committed 9 years ago

Commit 9646eba1 parent 5c3242615 files · +204 −165Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.h (1 of 15 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.h+3−3
@@ -147,7 +147,8 @@ public: · 146 unmodified lines
147 /// to run... NOTE - this is used by Application currently to load the url. We don't really want it to be exposed147 /// to run... NOTE - this is used by Application currently to load the url. We don't really want it to be exposed
148 /// to scripts. we may not need this to be invokable148 /// to scripts. we may not need this to be invokable
149 void loadURL(const QUrl& scriptURL, bool reload);149 void loadURL(const QUrl& scriptURL, bool reload);
150 bool hasValidScriptSuffix(const QString& scriptFileName); 150 bool hasValidScriptSuffix(const QString& scriptFileName);
151
151 Q_INVOKABLE QString getContext() const;152 Q_INVOKABLE QString getContext() const;
152 Q_INVOKABLE bool isClientScript() const { return _context == CLIENT_SCRIPT; }153 Q_INVOKABLE bool isClientScript() const { return _context == CLIENT_SCRIPT; }
153 Q_INVOKABLE bool isEntityClientScript() const { return _context == ENTITY_CLIENT_SCRIPT; }154 Q_INVOKABLE bool isEntityClientScript() const { return _context == ENTITY_CLIENT_SCRIPT; }
@@ -225,8 +226,7 @@ public: · 71 unmodified lines
225 void scriptWarningMessage(const QString& message);226 void scriptWarningMessage(const QString& message);
226 void scriptInfoMessage(const QString& message);227 void scriptInfoMessage(const QString& message);
227 void scriptPrintedMessage(const QString& message);228 void scriptPrintedMessage(const QString& message);
228 229 void clearDebugLogWindow();
229 void clearConsole();
230 int getNumRunningEntityScripts() const;230 int getNumRunningEntityScripts() const;
231 bool getEntityScriptDetails(const EntityItemID& entityID, EntityScriptDetails &details) const;231 bool getEntityScriptDetails(const EntityItemID& entityID, EntityScriptDetails &details) const;
232 232

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t