This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21696 - add onbefore(copy|cut|paste) tests
Summary: add onbefore(copy|cut|paste) tests
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Clipboard API and events (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Hallvord R. M. Steen
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-15 08:17 UTC by Hallvord R. M. Steen
Modified: 2014-01-21 00:31 UTC (History)
1 user (show)

See Also:


Attachments

Description Hallvord R. M. Steen 2013-04-15 08:17:31 UTC
Add tests for these events (obviously hard to automate..)
Comment 1 Hallvord R. M. Steen 2014-01-21 00:31:39 UTC
Done. (Won't link to tests because the test suite is auto-generated, meaning that the URLs are in flux)

Tests will basically be written like this:

document.onbeforecopy = function(){return true;}
function test(e){
	result('UI test: passes if "copy" menu UI state is enabled');
}

..now, I know this doesn't actually work in IE (before* event support is actually *very* limited in IE). I think it would be nicer and more usable if before* events worked this way, so that's what I'm currently spec'ing.