Major update: Refactor to rename ContentName to Name. Delete KeyName.js. For the moment, the KeyName class is now in KeyLocator.js.
This is done according to the API notes:
http://sea.remap.ucla.edu:8080/attachments/download/23/lwndn_api-notes_21020830.txt
diff --git a/js/testing/test-interest-matches-name.html b/js/testing/test-interest-matches-name.html
index 111789f..9038369 100644
--- a/js/testing/test-interest-matches-name.html
+++ b/js/testing/test-interest-matches-name.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../CCNTime.js"></script>
- <script type="text/javascript" src="../ContentName.js"></script>
+ <script type="text/javascript" src="../Name.js"></script>
<script type="text/javascript" src="../ContentObject.js"></script>
@@ -28,8 +28,6 @@
<script type="text/javascript" src="../KeyLocator.js"></script>
- <script type="text/javascript" src="../KeyName.js"></script>
-
<script type="text/javascript" src="../PublisherID.js"></script>
<script type="text/javascript" src="../Signature.js"></script>
@@ -74,10 +72,10 @@
<script type="text/javascript">
function check(){
- var interest = new Interest( new ContentName(document.getElementById('interest').value));
+ var interest = new Interest( new Name(document.getElementById('interest').value));
interest.scope = 1;
- var nameToCheck = new ContentName(document.getElementById('nameToCheck').value);
+ var nameToCheck = new Name(document.getElementById('nameToCheck').value);
var output = (interest.matches_name(nameToCheck) ? "matches" : "doesn't match");
document.getElementById('result').innerHTML = output;