Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: platform_tools/nacl/tests/index.html

Issue 1036283002: Remove all code related to NaCl (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « platform_tools/nacl/src/nacl_sample.cpp ('k') | platform_tools/nacl/tests/tests.nmf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/nacl/tests/index.html
diff --git a/platform_tools/nacl/tests/index.html b/platform_tools/nacl/tests/index.html
deleted file mode 100644
index 3a0bdb941575aa682206f0d48cdb26177b8a4af5..0000000000000000000000000000000000000000
--- a/platform_tools/nacl/tests/index.html
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<html>
- <!--
- Copyright 2013 Google Inc.
-
- Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file.
- -->
-<head>
-
- <title>Skia Unit Tests</title>
-
- <script type="text/javascript">
- "use strict";
-
- var SkiaModule = null; // Global application object.
-
- // Force a re-draw of the given element.
- function refresh(elem) {
- var old_display_style = elem.style.display;
- elem.style.display = "none";
- elem.style.display = old_display_style;
- }
-
- // When the module loads, begin running the application.
- function moduleDidLoad() {
- SkiaModule = document.getElementById("skia_nacl");
- run();
- }
-
- function handleMessage(message_event) {
- var skdebugf_cmd = "SkDebugf:";
- if (message_event.data.indexOf(skdebugf_cmd) == 0) {
- var msg_contents = message_event.data.slice(skdebugf_cmd.length)
- //console.log("Skia: " + msg_contents);
- var log_textarea = document.getElementById("log_textarea")
- log_textarea.value += msg_contents;
- log_textarea.scrollTop = log_textarea.scrollHeight;
- refresh(log_textarea);
- } else {
- alert(message_event.data);
- }
- }
-
- // Run the application.
- function run() {
- if (SkiaModule) {
- var cmd = "init";
- SkiaModule.postMessage(cmd);
- } else {
- alert("The Skia module has not properly loaded...");
- }
- }
- </script>
-</head>
-<body>
-
-<h1>Skia Unit Tests</h1>
-<p>
-<textarea id="log_textarea" rows="2" cols="2" readonly style="width:100%; height:500px; resize:none;"></textarea>
-</p>
-<p>
- <div id="listener">
- <script type="text/javascript">
- var listener = document.getElementById('listener');
- listener.addEventListener('load', moduleDidLoad, true);
- listener.addEventListener('message', handleMessage, true);
- </script>
-
- <embed name="nacl_module"
- id="skia_nacl"
- width=0 height=0
- src="tests.nmf"
- type="application/x-nacl" />
- </div>
-</p>
-</body>
-</html>
« no previous file with comments | « platform_tools/nacl/src/nacl_sample.cpp ('k') | platform_tools/nacl/tests/tests.nmf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698