Bug fix. Use Name.match for name matching.
diff --git a/js/testing/.DS_Store b/js/testing/.DS_Store
deleted file mode 100644
index a3d2768..0000000
--- a/js/testing/.DS_Store
+++ /dev/null
Binary files differ
diff --git a/js/testing/test-throughput-ws.html b/js/testing/test-throughput-ws.html
index 6544798..c99af33 100644
--- a/js/testing/test-throughput-ws.html
+++ b/js/testing/test-throughput-ws.html
@@ -39,15 +39,20 @@
document.getElementById('content').innerHTML += "<p>Total number of blocks: " + this.totalBlocks + "</p>";
return Closure.RESULT_OK;
}
+ /*
+ if (kind == Closure.UPCALL_CONTENT_BAD) {
+ console.log("NdnProtocol.ContentClosure: signature verification failed");
+ return Closure.RESULT_OK;
+ }
if (!(kind == Closure.UPCALL_CONTENT ||
kind == Closure.UPCALL_CONTENT_UNVERIFIED))
// The upcall is not for us.
return Closure.RESULT_ERR;
-
+ */
var contentObject = upcallInfo.contentObject;
if (contentObject.content == null) {
- console.log("NdnProtocol.ContentClosure: contentObject.content is null\n");
+ console.log("NdnProtocol.ContentClosure: contentObject.content is null");
return Closure.RESULT_ERR;
}
diff --git a/js/testing/test-throughput-xpcom.html b/js/testing/test-throughput-xpcom.html
deleted file mode 100644
index a8b3f46..0000000
--- a/js/testing/test-throughput-xpcom.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version = "1.0" encoding="utf-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns = "http://www.w3.org/1999/xhtml">
-<meta charset="UTF-8">
-
-<head>
- <title>NDN Get via XPCOM</title>
-</head>
-<body >
-
- <h1>NDN Protocol Examples</h1>
- <h2>Segmented files</h2>
- Here is a small text file:
- <br/>
- <a target="_blank" class="moz-txt-link-freetext"
- href="ndn:/wentao.shang/mars.jpg">ndn:/wentao.shang/mars.jpg</a>
- <br/>
-
- Here is a large image file:
- <br/>
- <a target="_blank" class="moz-txt-link-freetext"
- href="ndn:/wentao.shang/choir_jail.png">ndn:/wentao.shang/choir_jail.png</a>
- <br/>
-
-</body>
-</html>