feat: Initial clean release of CHM
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
这个提交包含在:
@@ -0,0 +1,93 @@
|
||||
var t = require(__dirname)
|
||||
|
||||
// should be the same both ways.
|
||||
var xmls = [
|
||||
'<parent xmlns:a="http://ATTRIBUTE" a:attr="value" />',
|
||||
'<parent a:attr="value" xmlns:a="http://ATTRIBUTE" />'
|
||||
]
|
||||
|
||||
var ex1 = [
|
||||
[ 'opentagstart', { name: 'parent', attributes: {}, ns: {} } ],
|
||||
[
|
||||
'opennamespace',
|
||||
{
|
||||
prefix: 'a',
|
||||
uri: 'http://ATTRIBUTE'
|
||||
}
|
||||
],
|
||||
[
|
||||
'attribute',
|
||||
{
|
||||
name: 'xmlns:a',
|
||||
value: 'http://ATTRIBUTE',
|
||||
prefix: 'xmlns',
|
||||
local: 'a',
|
||||
uri: 'http://www.w3.org/2000/xmlns/'
|
||||
}
|
||||
],
|
||||
[
|
||||
'attribute',
|
||||
{
|
||||
name: 'a:attr',
|
||||
local: 'attr',
|
||||
prefix: 'a',
|
||||
uri: 'http://ATTRIBUTE',
|
||||
value: 'value'
|
||||
}
|
||||
],
|
||||
[
|
||||
'opentag',
|
||||
{
|
||||
name: 'parent',
|
||||
uri: '',
|
||||
prefix: '',
|
||||
local: 'parent',
|
||||
attributes: {
|
||||
'a:attr': {
|
||||
name: 'a:attr',
|
||||
local: 'attr',
|
||||
prefix: 'a',
|
||||
uri: 'http://ATTRIBUTE',
|
||||
value: 'value'
|
||||
},
|
||||
'xmlns:a': {
|
||||
name: 'xmlns:a',
|
||||
local: 'a',
|
||||
prefix: 'xmlns',
|
||||
uri: 'http://www.w3.org/2000/xmlns/',
|
||||
value: 'http://ATTRIBUTE'
|
||||
}
|
||||
},
|
||||
ns: {
|
||||
a: 'http://ATTRIBUTE'
|
||||
},
|
||||
isSelfClosing: true
|
||||
}
|
||||
],
|
||||
[
|
||||
'closetag',
|
||||
'parent'
|
||||
],
|
||||
[
|
||||
'closenamespace',
|
||||
{
|
||||
prefix: 'a',
|
||||
uri: 'http://ATTRIBUTE'
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
// swap the order of elements 2 and 3
|
||||
var ex2 = [ex1[0], ex1[1], ex1[3], ex1[2]].concat(ex1.slice(4))
|
||||
var expected = [ex1, ex2]
|
||||
|
||||
xmls.forEach(function (x, i) {
|
||||
t.test({
|
||||
xml: x,
|
||||
expect: expected[i],
|
||||
strict: true,
|
||||
opt: {
|
||||
xmlns: true
|
||||
}
|
||||
})
|
||||
})
|
||||
在新工单中引用
屏蔽一个用户