Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Move Text selection to related specifications and drop Undo history
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsLeenheer committed Jan 19, 2011
1 parent c06c534 commit aea8cf4
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ <h2>
test.prototype = {
suites: [
{ title: null, sections: [ testParsing, testCanvas, testVideo, testAudio, testDevice, testElements, testForm, testInteraction, testMicrodata, testOffline, testSecurity ] },
{ title: 'Related specifications', sections: [ testGeolocation, testWebGL, testCommunication, testFiles, testStorage, testWorkers ] }
{ title: 'Related specifications', sections: [ testGeolocation, testWebGL, testCommunication, testFiles, testStorage, testWorkers, testOther ] }
],

initialize: function(e, t, c) {
Expand Down Expand Up @@ -2475,7 +2475,7 @@ <h2>
function testInteraction (results) { this.initialize(results) }
testInteraction.prototype = {
name: 'User interaction',
count: 4,
count: 2,

initialize: function(results) {
this.section = results.getSection(this.name);
Expand All @@ -2494,31 +2494,13 @@ <h2>
},

t2: function() {
this.section.setItem({
title: 'Undo history',
url: 'http://www.w3.org/TR/html5/editing.html#undo',
passed: !!window.undoManager,
value: 5
});
},

t3: function() {
this.section.setItem({
title: 'Session history',
url: 'http://www.w3.org/TR/html5/history.html#history',
passed: !!(window.history && history.pushState),
value: 5
});
},

t4: function() {
this.section.setItem({
title: 'Text selection',
url: 'http://www.w3.org/TR/html5/editing.html#selection',
passed: !!window.getSelection,
value: 5
});
}
}
};


Expand Down Expand Up @@ -2841,7 +2823,25 @@ <h2>
}
};


function testOther (results) { this.initialize(results) }
testOther.prototype = {
name: 'Other',
count: 1,

initialize: function(results) {
this.section = results.getSection(this.name);
for (var i = 1; i <= this.count; i++) { this['t' + i](); }
},

t1: function() {
this.section.setItem({
title: 'Text selection',
url: 'http://html5.org/specs/dom-range.html',
passed: !!window.getSelection,
value: 5
});
}
};



Expand Down

0 comments on commit aea8cf4

Please sign in to comment.