Commit eae4943a authored by Alain Takoudjou's avatar Alain Takoudjou

replicated opml storage: improvements, update scenario test

parent a5515a0a
......@@ -10,6 +10,7 @@
<link rel="stylesheet" href="../node_modules/grunt-contrib-qunit/test/libs/qunit.css" type="text/css" media="screen"/>
<script src="../node_modules/grunt-contrib-qunit/test/libs/qunit.js" type="text/javascript"></script>
<script src="../node_modules/sinon/pkg/sinon.js" type="text/javascript"></script>
<script src="scenario_monitor.js"></script>
</head>
......
This diff is collapsed.
......@@ -14,15 +14,15 @@
function getOpmlOutlineAsDict(outline) {
var outline_dict = {
title: outline.getAttribute('title') || '',
htmlurl: outline.getAttribute('htmlUrl') || '',
xmlurl: outline.getAttribute('xmlUrl') || '',
url: outline.getAttribute('url') || '',
text: outline.getAttribute('text') || '',
type: outline.getAttribute('type') || '',
version: outline.getAttribute('version') || '',
created: outline.getAttribute('created') || '',
category: outline.getAttribute('category') || ''
title: outline.getAttribute('title') || dummy.textContent,
htmlurl: outline.getAttribute('htmlUrl') || dummy.textContent,
xmlurl: outline.getAttribute('xmlUrl') || dummy.textContent,
url: outline.getAttribute('url') || dummy.textContent,
text: outline.getAttribute('text') || dummy.textContent,
type: outline.getAttribute('type') || dummy.textContent,
version: outline.getAttribute('version') || dummy.textContent,
created: outline.getAttribute('created') || dummy.textContent,
category: outline.getAttribute('category') || dummy.textContent
};
return outline_dict;
}
......@@ -122,6 +122,9 @@
.push(function (response) {
var element,
result;
if (!response.target.responseText) {
throw new jIO.util.jIOError("Cannot find document", 404);
}
element = new DOMParser().parseFromString(
response.target.responseText,
"text/xml"
......
......@@ -152,6 +152,9 @@
.push(function (response) {
var element,
item;
if (!response.target.responseText) {
throw new jIO.util.jIOError("Cannot find document", 404);
}
element = new DOMParser().parseFromString(
response.target.responseText,
"text/xml"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment